hostcp3

Well-Known Member
Jun 18, 2002
155
0
166
I attempted to move some logs today on one of our servers, could someone look at the process I used and tell me where I am wrong, the mv went ok, but when rebooting apache it failed and no websites could be found, the only way we got them back online was to mv the logs back.


stop procceses

/etc/rc.d/init.d/chkservd stop
/etc/rc.d/init.d/httpd stop

make dir in backup

mkdir /backup/usr/

move the files over:

mv /usr/local/apache/domlogs /backup/usr/
mv /usr/local/apache/logs /backup/usr/


cd /usr/local/apache/

make symbolic links.

ln –s /backup/usr/domlogs/ domlogs
ln –s /backup/usr/logs/ logs

start up again.

/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/chkservd start
 

hostcp3

Well-Known Member
Jun 18, 2002
155
0
166
squirrel

thankyou, the drive we use for backup was indeed unmounted, ok thankyou very much for your time to answer and your help.