Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Cronjob Problem



Threaded Mode | Print  

 Cronjob Problem, Cronjob Problem (5 Replies, Read 7871 times)
rexa5512
Group: Member
Post Group: Newbie
Posts: 8
Status:
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 ?
IP: --   

Cronjob Problem
divij
Group: Member
Post Group: Elite Member
Posts: 290
Status:
Hi,

Sir please add your command as:

PHP Code

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

IP: --   

Cronjob Problem
rexa5512
Group: Member
Post Group: Newbie
Posts: 8
Status:
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
IP: --   

Cronjob Problem
divij
Group: Member
Post Group: Elite Member
Posts: 290
Status:
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
IP: --   

Cronjob Problem
rexa5512
Group: Member
Post Group: Newbie
Posts: 8
Status:
I was try using SSH command it's work but.. when I try using cronjob is error ?
IP: --   

Cronjob Problem
divij
Group: Member
Post Group: Elite Member
Posts: 290
Status:
Hi,

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

Execute your cron command as webuzo user from terminal.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 19, 2024, 3:05 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.179