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!

Cron error

Discussion in 'General Discussion' started by deadend, Jul 1, 2007.

  1. deadend

    deadend Active Member

    Joined:
    Jan 18, 2007
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    156
    I have been getting this error for a while now, just kept brishing it off, but I must finally ask you guys what you know about.

    I couldnt find anything here about, but here it goes.

    Code:
    /etc/cron.daily/logrotate:
    
    error: error accessing /var/log/httpd: No such file or directory
    error: httpd:1 glob failed for /var/log/httpd/*log

    Everyday my wonderful cpanel shoots me this little notice, any idea how to fix this?

    -Lane
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    769
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    /dev/null
    logrotate shouldnt even be looking there, cpanels apache logs go in /usr/local/apache/logs and /usr/local/apache/domlogs

    what OS are you running?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    You are missing the httpd directory under /var/log/, hence the error. You need to change the path of apache logs in /etc/logrotate.d/httpd file

    From: /var/log/httpd/*log
    TO: /usr/local/apache/logs/*log

    as cPanel stores the apache logs under /usr/local/apache/logs/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. deadend

    deadend Active Member

    Joined:
    Jan 18, 2007
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    156
    Thank you Shekhar. I have made the changes and will see of all is well. Thank you both for your responses.


    -Lane
     
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