The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help ! Help !

Discussion in 'General Discussion' started by hkewell, Aug 17, 2002.

  1. hkewell

    hkewell Well-Known Member

    Joined:
    May 17, 2002
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    0
    /usr ... coming full ... pls help me ...

    How to move /usr/local/apache/domlogs to other folder ?

    Which one command for type ???

    And Which one file for edit &/usr/local/apache/domlogs to /var/log/httpd/domlogs/& ????

    Please help me !

    Thanks
     
  2. ecoutez

    ecoutez Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    0
    Try this...

    Stop Apache:
    /usr/local/apache/bin/apachectl stop

    Move logs to new directory:
    mv /usr/local/apache/domlogs /var/log/httpd/

    Create symbolic link:
    ln -s /var/log/httpd/domlogs /usr/local/apache/domlogs

    Start Apache:
    /usr/local/apache/bin/apachectl startssl
    (or Restart via WHM)

    In this manner, Apache will still log to /usr/local/apache/domlogs, but this directory is actually a symbolic link to a directory on your /var partition. Therefore you won't have to worry about changing Apache configuration, log rotations, log analysis, etc.

    - Jason
     
Loading...

Share This Page