Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2007

    Cron Job Not Running

    Hi Guys,

    I have a cron job that is supposed to run every 1min. How ever its not running at all for some reason. I've checked the processes and crond is running but the cron job is not running:

    php -f /home/cold/domains/
    I'm running Centos 5 32Bit with DirectAdmin installed.

    How do i view the last 10 cron jobs that been ran in SSH?
    How do i view any errors when running cron jobs in SSH?

    Any help would be great.


  2. #2
    Join Date
    Nov 2001
    Dublin, PA
    What's your cron entry look like?

    tail /var/log/cron
    will show you the last 10 cron jobs

  3. #3
    Join Date
    Oct 2002
    State of Disbelief
    Is that the correct path to that file it's supposed to run? Looks a bit odd.
    Having problems, or maybe questions about WHT? Head over to the help desk!

  4. #4
    Try to run that script manually and see the error message:
    $ php -f /home/cold/domains/

  5. #5
    Join Date
    Apr 2003
    You can also try putting the full path to php, it might be unable to find it or using a wrong copy.
    John W, CISSP, C|EH
    MS Information Security and Assurance - Server Administration and Security - Managed VPS and Dedicated Servers with VIP Service

  6. #6
    Join Date
    Jun 2009
    Inside WHT !
    Run the command "which php" and add the full path instead of just "php"

    Like: /usr/local/bin/php -f /home/cold/domains/

  7. #7
    I think the last 10 cron jobs can be viewed here /var/log/syslog

  8. #8
    Join Date
    Jun 2010
    I would suggest you to add the full path of which binaries and your problem will be solved. are you running the cron as a root user? if running from other user then check cron.deny and cron.allow file rules.

Similar Threads

  1. running a php page in a cron job
    By BostonGuru in forum Programming Discussion
    Replies: 6
    Last Post: 08-21-2006, 07:12 PM
  2. Error when Running Cron job with feedwordpress
    By hardjoko in forum Hosting Security and Technology
    Replies: 5
    Last Post: 07-26-2006, 10:44 AM
  3. Cron job Help: Can any one Help with Commands for Cron Jobs????
    By pal_web in forum Hosting Security and Technology
    Replies: 4
    Last Post: 06-16-2006, 02:43 PM
  4. running a cron job
    By us0r in forum Hosting Security and Technology
    Replies: 1
    Last Post: 03-14-2005, 10:11 PM
  5. run-parts /etc/cron.daily & Anacron job 'cron.daily problems
    By 0218 in forum Hosting Security and Technology
    Replies: 0
    Last Post: 12-12-2004, 10:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts