Difference between revisions of "Cron Jobs"

From Hostek.com Wiki
Jump to: navigation, search
(cPanel - Setting up Cron Jobs)
m (cPanel - Setting up Cron Jobs)
Line 6: Line 6:
 
Please keep in mind that you may have to have a cron job be executed by a specific service.<br />
 
Please keep in mind that you may have to have a cron job be executed by a specific service.<br />
 
For Example a php file to be ran:
 
For Example a php file to be ran:
  /usr/bin/bin -q /home/user/public_html/cron.php
+
  /usr/bin/php -q /home/user/public_html/cron.php
  
 
If you do not want the email to be received for confirmation you will need to add the following to the end of your request:
 
If you do not want the email to be received for confirmation you will need to add the following to the end of your request:
  
  /usr/bin/bin -q /home/user/public_html/cron.php > /dev/null
+
  /usr/bin/php -q /home/user/public_html/cron.php > /dev/null
  
 
If you are using get for a http request it would be like this:
 
If you are using get for a http request it would be like this:

Revision as of 22:03, 10 March 2014


cPanel - Setting up Cron Jobs

How to setup a cron job

Please keep in mind that you may have to have a cron job be executed by a specific service.
For Example a php file to be ran:

/usr/bin/php -q /home/user/public_html/cron.php

If you do not want the email to be received for confirmation you will need to add the following to the end of your request:

/usr/bin/php -q /home/user/public_html/cron.php > /dev/null

If you are using get for a http request it would be like this:

/usr/bin/curl --silent --output /dev/null http://yourdomain.com/cron.php

WCP/MochaPanel - Setting up Crong Jobs

This option is currently not available within MochaPanel.