Author Topic: Cron job not working within cwp  (Read 25653 times)

0 Members and 2 Guests are viewing this topic.

Offline
***
Cron job not working within cwp
« on: July 25, 2016, 11:09:33 PM »
I am not having any luck with my cron jobs

*/15 * * * * /usr/local/php /home/username/public_html/usersite.com/oc-includes/osclass/cron.php >> /home/username/myfile.log

Any ideas what is wrong?

Offline
*
Re: Cron job not working within cwp
« Reply #1 on: July 26, 2016, 11:54:08 AM »
you are not using the correct php path, you have the correct path in the cwp cron

Code: [Select]
Don't forget to always use a full path, eg. /usr/local/bin/php
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: Cron job not working within cwp
« Reply #2 on: July 26, 2016, 02:09:55 PM »
I thought that meant the path to php.ini.

Log file for user says:

ABS_PATH is not loaded. Direct access is not allowed.  I guess you cant call cron.php directly.......
« Last Edit: July 26, 2016, 02:35:53 PM by pixelpadre »

Offline
*
Re: Cron job not working within cwp
« Reply #3 on: July 26, 2016, 02:56:38 PM »
If it helps at all this works for me;

5,20,35,50 * * * * wget -q -O - http://mysite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

Thats to call the wordpress cron instead of having it shoot via page loads.

Offline
*
Re: Cron job not working within cwp
« Reply #4 on: December 16, 2016, 12:41:38 AM »
Attention Correct Cron job.

I copied with no whmcs -> php -q /home/username/public_html/customers/admin/cron.php   
Attention, leave space eg.  php /Home   1 space.

cronjob Configured correctly      */5 * * * * /usr/local/bin/php /home/username/public_html/customers/admin/cron.php
« Last Edit: December 16, 2016, 12:53:17 AM by hostuga »
Hello, I'm from Portugal, I'm loving the CentOs Web panel let's evolve this project, it's unique, and very useful. Sorry my english portugues :-)

Offline
*
Re: Cron job not working within cwp
« Reply #5 on: October 31, 2021, 07:19:37 AM »
and this is happen new version fresh install on centos 7
cron job cannot create