Softaculous


Topic : Cronjob Problem


Posted By: rexa5512 on December 16, 2014, 7:11 pm
I was add my command for cronjab

* * 1 * *cd /home/admin/www/domain.com/plugins/ && php cron.php

when I refresh that always back to

* * 1 * *cd /home/admin/www/domain.com/plugins/

can I know what happen ?

Posted By: divij on December 17, 2014, 7:15 am | Post: 1
Hi,

Sir please add your command as:

PHP Code

 * * * *  php /home/admin/www/domain.com/plugins/cron.php 


Posted By: rexa5512 on December 17, 2014, 10:42 am | Post: 2
I was try

* * 1 * *  php /home/admin/www/domain.com/plugins/cron.php

but error like this

Warning: require_once(../../cron.php): failed to open stream: No such file or directory in /home/admin/public_html/domain.com/plugins/cron.php on line 10

when I try using command ssh

* * 1 * * cd /home/admin/www/domain.com/plugins/ && php cron.php 

that is fine work

can you help me

Posted By: divij on December 18, 2014, 7:21 am | Post: 3
Hi,

Sir please check the path of your include file at line no 10

You can also add cron as:
* * 1 * * cd /home/admin/www/domain.com/plugins/ && php cron.php

Posted By: rexa5512 on December 18, 2014, 9:14 am | Post: 4
I was try using SSH command it's work but.. when I try using cronjob is error ?

Posted By: divij on December 18, 2014, 10:13 am | Post: 5
Hi,

Sir make sure your cron command does not require any root privileges.

Execute your cron command as webuzo user from terminal.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.