Cron jobs issue? Does not seem to be running.

ozgurerdogan

Verified User
Joined
Apr 20, 2008
Messages
343
I have added 4 php file cron jobs in admin level domain.

But they do not seems to be running because when I manually run ;
-------------------------------
php /home/admin/domains/yesilbeyaz.com.tr/public_html/tools/master_cron.php
-------------------------------
I am getting (Do not know the error followed by):
-------------------------------
php /home/admin/domains/yesilbeyaz.com.tr/public_html/tools/master_cron.php
exim abandoned: unknown, malformed, or incomplete option -f
-------------------------------
But cron runs and I get the results that it must do.

But crons that I set up in DA, does not seem to be running as I set them to run once in a minute.

When I tail the cron log;
-------------------------------
Mar 11 23:45:01 lnxwebbox1 crond[30264]: (admin) CMD (/home/admin/domains/yesilbeyaz.com.tr/public_html/tools/updtransfers.php)
Mar 11 23:45:01 lnxwebbox1 crond[30265]: (admin) CMD (/home/admin/domains/yesilbeyaz.com.tr/public_html/tools/updateexp.php)
-------------------------------

Above php files are two of them that should run once in 23 hours.

Thanks in advance.
 
Last edited:
I assume you are setting up crons for AWBS.

You need to specify full path to php as the following example:

Code:
/usr/local/bin/php -q -f /home/admin/domains/yesilbeyaz.com.tr/public_html/tools/updtransfers.php
 
Thank youuuu so much. I added them like so:

php -q -f /home/admin/domains/yesilbeyaz.com.tr/public_html/tools/updtransfers.php

So after adding full path like you said, it is all perfect now.

Thank you again.
 
Or you can put the full path at the top of the php file (#!/usr/local/bin/php) and chmod 755 file.php.
 
Back
Top