Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default how to move logs out of /usr ?

    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.

  2. #2
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default

    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.

  3. #3
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default

    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.

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. /usr out of space due mailman logs
    By ralbano in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-28-2010, 08:26 AM
  2. Move /usr directory?
    By HH-Steven in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-16-2008, 07:56 PM
  3. How can I move /usr & /var to a seperate drive?
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-13-2004, 06:28 PM
  4. /usr/local/cpanel/logs ?
    By easyhoster1 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-10-2003, 12:12 PM
  5. Check out /usr/local/cpanel/logs/ !!!
    By H2Hosting.com in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 04-29-2003, 11:56 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube