Cpanel Cron Jobs


Cron Jobs in Cpanel

Cron Jobs in Cpanel can be used to automate tasks that could otherwise need manual updating. One example for which to use a cron job could be to execute a php file in order to make database updates or send automated email.

1) Login to Cpanel
2) Select Cron Jobs
3) Go to Add New Cron Job
4) Select a Common Setting (i.e. Once a day) and fime tune other options like minute, hour, day, month and weekday.
5) Add the command (i.e. Execute a PHP File)
a) php -q/home/account_username/public_html/example.com/myfile.php
or
b) GET http://www.example.com/myfile.php