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 not working (http://www.howtoforge.com/forums/showthread.php?t=54117)

asn 13th September 2011 10:39

Cron Job not working
 
Sir, my cron job is not working.

When I check in ISPConfig monitor tab
Under monitor tab - ISPConfig Cron - Log, I see following output

mkdir: cannot create directory `/var/www/clients/client1/web1/var': File exists
mkdir: cannot create directory `/var/www/clients/client1/web1/var/run': File exists
mkdir: cannot create directory `/var/www/clients/client1/web1/var/run/mysqld': File exists
ln: creating hard link `/var/www/clients/client1/web1/var/run/mysqld/mysqld.sock': File exists
invalid shell, /var/www/clients/client1/web1/bin/bash does not exist
usermod: no changes

Why this problem comes. Please help me.

Thanks & Regards
ASN

till 13th September 2011 11:43

Please post the settings of your cronjob and the command that you execute.

asn 13th September 2011 11:52

Cron Job Command
 
Thank you for replay

In site cron job settings

Minute - *
Hours - *
Days of month - *
Months - *
Days of week - *
Command to run - /usr/bin/php -f /var/www/clients/client1/web1/web/admin/cron/cron.php

Thanks & Regards
ASN

till 13th September 2011 11:59

According to the above errors, you created a jailed cronjob. But the php binary is not in the jail, so the cronjob can not work.

As the cronjob is a php script, you should use a url cronjob instead. Enter as command the url to the php script, e.g.:

http://www.yourdomain.tld/admin/cron/cron.php

asn 13th September 2011 12:54

Cron Job working
 
Thank you very much for your reply.

My cron job working.

Thanks & Regards
ASN


All times are GMT +2. The time now is 11:15.

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