Hello
I need/wish to move logs
[/usr/local/apache/domlogs]
and
[/usr/local/apache/logs]
out of /usr for example on /home/apachelogs/
any way to do that ?
THANK YOU
(long time ago I read something on this forum but now I cannot find the post)
Hello
I need/wish to move logs
[/usr/local/apache/domlogs]
and
[/usr/local/apache/logs]
out of /usr for example on /home/apachelogs/
any way to do that ?
THANK YOU
(long time ago I read something on this forum but now I cannot find the post)
█ Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
█ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.
I was thinking to do this
======================
mkdir /home/apache/logs/
chmod 755 /home/apache/logs
mkdir /home/apache/domlogs
chmod 755 /home/apache/domlogs
mv /usr/local/apache/logs/* /home/apache/logs
mv /usr/local/apache/domlogs/* /home/apache/domlogs
rmdir /usr/local/apache/logs
rmdir /usr/local/apache/domlogs
/etc/rc.d/init.d/chkservd stop;/etc/rc.d/init.d/httpd stop
ln -s /home/apache/logs /usr/local/apache/logs
ln -s /home/apache/domlogs /usr/local/apache/domlogs
/etc/rc.d/init.d/chkservd start;/etc/rc.d/init.d/httpd start
======================
What do you think , it will work fine ?
Last edited by Radio_Head; 10-21-2003 at 07:07 AM.
█ Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
█ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.
Hello
I executed the procedure above , ok worked fine
![]()
If apache doesn't update logs try
to stop and restart again apache.
█ Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
█ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.
Could've shortened it too.
======================
mkdir /home/apache/
mv /usr/local/apache/logs /home/apache
mv /usr/local/apache/domlogs /home/apache
/etc/rc.d/init.d/chkservd stop;/etc/rc.d/init.d/httpd stop
ln -s /home/apache/logs /usr/local/apache/logs
ln -s /home/apache/domlogs /usr/local/apache/domlogs
/etc/rc.d/init.d/chkservd start;/etc/rc.d/init.d/httpd start
======================
That would do the same thing. With mkdir, permissions are already 755, and when moving an entire directory, it's not necessary to create it's new location first.![]()