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 Job issues

Discussion in 'General Discussion' started by thewebhosting, May 14, 2008.

  1. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    I have setup a cron job in my domain name to flush the logs every hour. I have setup it like below:

    php –q /home/myusername/public_html/cron.php.

    But it does not work. I am receiving “No input file specified” error when it runs. What am I doing wrong?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Whats in the cron.php? Not that it matters at this point I don't think.

    Try this way:

    php -q -f /home/myusername/public_html/cron.php /home/myusername/public_html/

    (space between the cron.php and the rest...)
     
Loading...

Share This Page