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.

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:
    16
    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
     
  2. Marty

    Marty Well-Known Member

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

    touch /usr/local/apache/logs/audit_log
     
  3. mahdionline

    mahdionline Well-Known Member

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

    Regard
     
  4. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  5. mahdionline

    mahdionline Well-Known Member

    Joined:
    Oct 18, 2003
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    Thanks Marty ! :)
     
Loading...

Share This Page