Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    May 2008
    Posts
    6

    Question cron fails but browser execution works

    This is probably a shot in the dark here but my cronjob was working until today. It's just a php script I made in a protected folder. It works great if I run it directly from the browser window, but the old cron tasks fails to execute anymore. Here's what I checked for and tried...

    • No error_log file. Usually it generates this in the folder if something goes wrong.
    • /var/log/cron shows execution but nothing else.
    • Tried restarting the services. No Luck
    • Tried doing a graceful restart on server. No Luck.
    • Tried execution as root and get a File Missing message but thats it. Doesn't say what file it was searching for oddly.

    Is there anything else I should try? Any more info someone would need? Pulling my hair out on the weirdness of this to suddenly stop working. No cpanel updates happened on it recently as far as I know.

    The cronjob command executed every minute...
    php /home/ihavecnb/public_html/power/runcron.php
    which was this before but I wanted to see any error messages...
    php /home/ihavecnb/public_html/power/runcron.php >/dev/null 2>&1

    Hopefully someone out there might have some insight 8)
    Last edited by blissend; 02-12-2010 at 04:23 PM.

  2. #2
    Member
    Join Date
    May 2008
    Posts
    6

    Default

    Nevermind. I figured it out... too weird to explain why it works in the browser and not via cronjob.

Similar Threads & Tags
Similar threads

  1. Backup works but FTP fails ....
    By nikc in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-09-2011, 12:10 PM
  2. Cron jobs - Fatal error: Maximum execution time of 30 seconds exceeded
    By torres87 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-03-2008, 02:32 AM
  3. cron execution command
    By kartheek999 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-14-2007, 04:53 AM
  4. IMAP Fails but POP Works, Pls help?
    By ukdvdr in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-18-2004, 04:16 PM
  5. Viewing Sites via Browser Fails
    By Silverlime in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-23-2004, 09:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube