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.

change the log directory of apache

Discussion in 'EasyApache' started by Aldweb, Feb 25, 2010.

  1. Aldweb

    Aldweb Well-Known Member

    Joined:
    Feb 18, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I would like to change the log directory of apache /usr/local/apache/domlogs / to /backup/apache/domlogs/. Where do I change the directory?

    Thanks
     
  2. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    symlink

    You can create a symlink to complete the task easy enough
    pm me if stuck
     
  3. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Washington Court House, Ohio, United States
    cPanel Access Level:
    DataCenter Provider
    more info

    I think this might help a bit


    to change the log directory of apache /usr/local/apache/domlogs / to /backup/apache/domlogs/

    you should

    in shell

    cd /usr/local/apache/

    then
    mv domlogs / to /backup/apache/domlogs/

    then

    ln -s /backup/apache/domlogs/ domlogs

    and it should be complete
     
Loading...

Share This Page