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.

Upgrading to PHP 5 killed my crons

Discussion in 'General Discussion' started by derekivey, Jul 23, 2007.

  1. derekivey

    derekivey Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Hey guys,

    For some reason after I upgraded my server to PHP 5.2.3 (from PHP 4), all of my crons stopped working. I checked the cron log and it shows that they ran but they don't do anything. Is anyone else having this problem?

    Thanks,
    Derek
     
  2. derekivey

    derekivey Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Anyone having this problem?
     
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You'll probably need to take the diagnostic steps a bit further.

    Try running the php commands listed in the cron directly from the shell as that user. What happens then?

    Are the scripts outputting any data? Where is the crontab set to e-mail this output to?
     
  4. derekivey

    derekivey Well-Known Member

    Joined:
    Nov 30, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Hey There,

    I've tried running them as the user in SSH and they run fine. For some reason the cron system isn't sending me an email saying it was run even though I can look at the logs and see that it has run. This has worked before I upgraded to PHP 5.

    Thanks,
    Derek
     
Loading...

Share This Page