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.

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:
    6
    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:
    770
    Likes Received:
    2
    Trophy Points:
    18
    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?
     
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    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/
     
  4. deadend

    deadend Active Member

    Joined:
    Jan 18, 2007
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    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