Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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:
    544
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hostmedic

    hostmedic Well-Known Member

    Joined:
    Apr 30, 2003
    Messages:
    544
    Likes Received:
    0
    Trophy Points:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice