Setting up cron jobs in Cpanel

Please follow the instruction below to run a cron job on linux server with cpanel


+ Execute php query with reference to location of cron job on the server


/usr/local/bin/php -q /home/cpanel-username/public_html/location-cron-job.php


If you get error when running cron job, please check that you can run the cron job in web browser.


Include in the cron job a piece of code to send email to verify cron job run successfully.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

500 Internal Server Error

This is a common error when you change CHMOD to 777 or have incorrect syntax in .htaccess file....

cPanel custom error pages

To create a custom error page for your account you will need to either upload a file with the...

Custom PHP.ini

You can create a custom php.ini file and ftp upload it to your root / just above www/public_html....

Do you have a manual for Cpanel?

Cpanel documentation http://www.cpanel.net/docs/cpanel/

How can I backup my site using Cpanel?

All depends on how complex your website is. If it is just a pretty simple website with basic...

Powered by WHMCompleteSolution