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!

cp: cannot stat `/usr/local/apache/logs/audit_log'

Discussion in 'EasyApache' started by mahdionline, Nov 11, 2004.

  1. mahdionline

    mahdionline Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    166
    I recive an email from server by this subject : Cron <root@ns1> run-parts /etc/cron.hourly

    email body :

    /etc/cron.hourly/modsecparse.pl:

    cp: cannot stat `/usr/local/apache/logs/audit_log': No such file or directory

    Regard
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    318
    ssh into the server as root and do the following:

    touch /usr/local/apache/logs/audit_log
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mahdionline

    mahdionline Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    166
    I do this command , it run but donot show me any message.

    Regard
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    318
    It is not supposed to show you a message. It just creates the audit log file so that cron job has a file to copy.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mahdionline

    mahdionline Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    166
    Thanks Marty ! :)
     
    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