var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Cron Job Not Running
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:
I'm running Centos 5 32Bit with DirectAdmin installed.
php -f /home/cold/domains/coldsummer.co.uk/public_html/out/admin/cron/cron.php
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.
What's your cron entry look like?
will show you the last 10 cron jobs
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!
Try to run that script manually and see the error message:
$ php -f /home/cold/domains/coldsummer.co.uk/public_html/out/admin/cron/cron.php
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
Run the command "which php" and add the full path instead of just "php"
Like: /usr/local/bin/php -f /home/cold/domains/coldsummer.co.uk/public_html/out/admin/cron/cron.php
I think the last 10 cron jobs can be viewed here /var/log/syslog
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.
By BostonGuru in forum Programming Discussion
Last Post: 08-21-2006, 07:12 PM
By hardjoko in forum Hosting Security and Technology
Last Post: 07-26-2006, 10:44 AM
By pal_web in forum Hosting Security and Technology
Last Post: 06-16-2006, 02:43 PM
By us0r in forum Hosting Security and Technology
Last Post: 03-14-2005, 10:11 PM
By 0218 in forum Hosting Security and Technology
Last Post: 12-12-2004, 10:24 PM