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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron jobs do not work

Discussion in 'General Discussion' started by technicolor, Oct 25, 2016.

  1. technicolor

    technicolor Member

    Joined:
    Mar 11, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    italy
    After recent updates my cron jobs do not work, this is my conf:
    • CENTOS 6.8 x86_64 standard – creativalab
    • WHM 58.0 (build 32)
    Which is the correct line command to execute a php page?
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    561
    Likes Received:
    40
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Make sure crond service is running on the server or try to restart crond service.
    Also, Please check cron log file if there is any error message.
     
  3. technicolor

    technicolor Member

    Joined:
    Mar 11, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    italy
    Oct 24 03:00:01 creativalab CROND[27096]: (user) CMD (/home/domain/public_html/riservata/updateCorsi.php >/dev/null 2>&1)
    Oct 25 04:00:01 creativalab CROND[27926]: (user) CMD (php /home/domain/public_html/newsletter/touroperator/invia-newsletter.php)

    Cron works but php files not. Why?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Is EasyApache 4 installed on this system, and is the account assigned jailed shell access? If so, try updating the cron job command to use the following path for PHP:

    Code:
    /usr/local/bin/php
    Let us know if that helps.

    Thank you.
     
Loading...

Share This Page