Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Tuesday, November 6, 2007

Setting up new Godaddy VPS

Mods to linux:
1. Modified .bashrc in my home directory and root and added:

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

alias ls='ls -laF --color'

(used vi, ugh http://freeengineer.org/learnUNIXin10minutes.html#Vi)

2. installed emacs

yum install emacs

3. Copied previously zipped domain code from old server using ftp mput

(http://www.cs.colostate.edu/helpdocs/ftp.html)

and unzipped into domain directories

/var/www/vhosts/ggjump.com/httpdocs

and change ownership

chown -R pbright *


4. Setup locate database

Checked not already in cron

crontab -l

Added /etc/cron.daily/mlocate.cron to run daily using Plesk
Ran script to get it started
sh /etc/cron.daily/mlocate.cron

5. Used to having domains in /home so put in dynamic links

ln -s /var/www/vhosts/ggjump.com/httpdocs
etc.


6. Get mysql server accessible from desktop

cd /home
7. Transferred data from mysql databases using Navicat and for each database create new users.

7.5 Create Domain template and User Phoebe Bright

8. For each domain
In domain part of godaddy
- setup nameservers (http://help.godaddy.com/article.php?article_id=653&topic_id=60)
- in nameserver put in new names, eg. ns1.ggjump.com
- modify index.php for this domain so I can tell when/if transfer takes place

9. Install ZendGData
http://code.google.com/support/bin/answer.py?answer=76585&topic=12027#appendix
- downloaded and installed in /usr/include/php/ZendGdata
- amended /etc/php.ini include
include_path = ".:/usr/include/php:/usr/include/php/ZendGdata"
restart

10. Customised php.ini
- display_errors on
- log_errors off
- safe_mode off
restart

11. Fixed default safe_mode on

For each domain, when setting up make sure the safe mode tickbox next to the php tickbox is set to off. There are domain specific settings for php in
# /var/www/vhosts/ggjump.com/conf/vhost.conf
# /var/www/vhosts/ggjump.com/subdomains//conf/vhost.conf
can modify these manually but likely to be overwritten.