HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Cron job question (http://www.howtoforge.com/forums/showthread.php?t=42079)

autogun 22nd December 2009 03:40

Cron job question
 
Hello,

A client of mine is using ISPconfig's hosting control panel and trying to setup a cron job using "Sites > Cron jobs".

Cron job looks like this -
Code:

*/5 * * * * php -f /var/www/domain.com/tmp/application/cron.php > /var/www/domain.com/tmp/test.log
The problem is, the "test.log" file is being created empty -
Code:

-rw-r--r-- 1 web4    client2      0 2009-12-22 04:35 test.log
The right output should be -
Code:

2009-12-21 04:35:49: start...
2009-12-21 04:36:34: done...

Can somebody suggest why this is not working?

Thanks in advance!

till 22nd December 2009 09:20

I guess the php interpreter is not found on your system. Use the full path to php in your command like:

/usr/bin/php -f /var/www/domain.com/tmp/application/cron.php > /var/www/domain.com/tmp/test.log

autogun 22nd December 2009 11:54

Quote:

Originally Posted by till (Post 214209)
I guess the php interpreter is not found on your system. Use the full path to php in your command like:

/usr/bin/php -f /var/www/domain.com/tmp/application/cron.php > /var/www/domain.com/tmp/test.log

You nailed it Till,
Thanks you!


All times are GMT +2. The time now is 04:39.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.