Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Cron Job every 20 minutes

1


Threaded Mode | Print  

 Cron Job every 20 minutes, CronJob didn't work? (26 Replies, Read 38908 times)
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi,
i have set CronJob on webuzo panel every 20 minutes: here the image in Attachments


Is set correctly the time?
In the command i have inserted the patch of php file like / home / public_html / file . P H P

but it seem Cronjob didn't work.
How to fix, what is wrong?

Thanks.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job every 20 minutes
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
It is correct.

Make sure your command is correct. Execute it once manually from the terminal to confirm the same.

Provide the entire path to the php binary.
E.g /usr/bin/php

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

Cron Job every 20 minutes
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Quote From : valley November 9, 2013, 6:18 pm
It is correct.

Make sure your command is correct. Execute it once manually from the terminal to confirm the same.

Provide the entire path to the php binary.
E.g /usr/bin/php


How to try to execute by terminal?
The command of Cron are correct but they didn't work, when i access to my personal script they tell me to insert a crom every 20 minutes so how i can test Cron Job is relly working?

Before i made the cron job for the same script in other panel and no problem, with Webuzo i see Cron Job seem to be not active.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job every 20 minutes
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
You are probably inserting an invalid command.
What command are you using ?

Restart the CRON service:
Root > service crond restart

Run it at an interval of 5 mins for testing purpose, rather than for 20 mins and evaluate the result.

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

Cron Job every 20 minutes
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
php -q -d safe_mode=Off /home/****/public_html/iwp/cron.php >/dev/null 2>&1

i have insert in the minute : */20 and other field *


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job every 20 minutes
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Replace "php" with "/usr/bin/php"

Also manually execute this command

php -q -d safe_mode=Off /home/****/public_html/iwp/cron.php

What is the result ?

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

Cron Job every 20 minutes
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi,
thank you so.. now the command will be
Quote
/usr/bin/php -q -d safe_mode=Off /home/******/public_html/iwp/cron.php >/dev/null 2>


where i can try to execute this, in the SSH?


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job every 20 minutes
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Execute it like any other linux command.

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

Cron Job every 20 minutes
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Quote From : valley November 13, 2013, 9:01 am
Execute it like any other linux command.


I have execute in linux SSH and no error are showed. If i open the relative script page after do this command they stop to alert me CronJob is missing because i have opened the command of cron by SSH who work.. so the problem i suppose is is in the CronJobs.

I have a problem in my VPS of SendMail, when i try to restart i can see some error. Maybe can be connected to this problem? I didn't know..


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job every 20 minutes
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
If it is working well from the command line then it should work well from the CRON as well.

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

Cron Job every 20 minutes
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Quote From : valley November 13, 2013, 11:17 am
If it is working well from the command line then it should work well from the CRON as well.


Sorry as i see CronJob didn't work on my Webuzo I?M using a plug in in wordpress. I have not solved this issue and i don't understand what is wrong but i have solved with a plug in in Wordpress.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job every 20 minutes
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
You can open a support ticket with your server details so that we can debug a resolve the issue on your server.

https://www.softaculous.com/support/

-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

Cron Job every 20 minutes
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Quote From : valley November 24, 2013, 4:15 pm
You can open a support ticket with your server details so that we can debug a resolve the issue on your server.

https://www.softaculous.com/support/


I have some problem to give you the access.
If i want set a cronjob every 5 minutes i have to insert */5 in minute field and other field -> *

in command line i can put the patch of php file without noting befire like
not [ php home/admin... ] but directly [ home/admin... ] ?

I can see CronJob aren't work, what can be?


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job every 20 minutes
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
future version of CronJob can have notification by email for verifiy if all work fine or last execution, logs.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job every 20 minutes
valley
Group: Webuzo Team
Post Group: Super Member
Posts: 1644
Status:
Quote
in command line i can put the patch of php file without noting befire like
not [ php home/admin... ] but directly [ home/admin... ] ?


Whatever command you add to the CRON, try to execute the command manually to test functioning of the command.

Only then will it provide the expected results.

Quote
future version of CronJob can have notification by email for verifiy if all work fine or last execution, logs.

Thanks for the suggestion.


-----------------------
Webuzo : Single User Control Panel
Join Webuzo :
Facebook
Twitter

IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 24, 2024, 8:56 pm.

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