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/
can modify these manually but likely to be overwritten.
7 comments:
SO SO SO GLAD I MADE THIS LIST Godaddy had a hard disk failure yesterday, after I spent the whole day setting up the server and I have to do it all again! They were very nice but no offer of refunding the fees for the month.
Lots of permission problems trying to run websites.
Trying to turn off open_basedir
Tried instructions here:http://help.godaddy.com/article.php?article_id=1616&topic_id=92&isc=thanks01
emacs /etc/httpd/conf/httpd.conf
Better but still getting some permission problems.
Added vhosts.conf
[code]
<Directory /var/www/vhosts/savemybacon.com/httpdocs>
php_admin_value open_basedir none
</Directory>
[/code]
in /home/savemybacon.com/conf
as instructed here: http://help.godaddy.com/article.php?article_id=1619&topic_id=92&isc=thanks01
Did it also in subdomain but still having problems. php_info says none for open_basedir
Setup Cron jobs
as root
every 3 mins php /home/savemybacon.com/todo/check_moblog.php
Once a day:
php /home/savemybacon.com/todo/daily_list.php
every hour:
php /home/savemybacon.com/todo/check_reminders.php
And added .:/usr/share/psa-horde/pear to include_path in /etc/php.ini
Research into open_basedir problem
http://forums.serverbeach.com/archive/index.php/t-4002.html
http://kb.swsoft.com/en/966
And some pissed of people here:
http://forum.swsoft.com/showthread.php?s=&threadid=48892
Open_basedir again
To summarise advice from above (huge thanks!)
Added conf directory to /var/www/vhosts/.skel/0
create vhost.conf file in it containing
Code:
<Directory /var/www/vhosts/@domain_name@/httpdocs>
php_admin_value open_basedir none
</Directory>
for existing domains went and added this by hand.
then
Code:
/usr/local/psa/admin/sbin/websrvmng -a
/etc/init.d/httpd reload
My only remaining problem is the above does not work correctly when setting up subdomains as it still puts the domain path in. But much better!
Post a Comment