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 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:
    68
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    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...)
     
    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