How Can We Help?
< All Topics
Print

Scheduling Tasks: A Guide to cPanel Cron Jobs

The cPanel Cron Jobs allows you to set up cron jobs to automatically run specific commands or PHP programs, such as once a day or once a week. This is often necessary for software such as CRM or billing, as too many cron job settings may have an impact on server performance. 

a) How to Setup a Cron Job in cPanel

1. Log into cPanel and navigate to the Advanced section to select Cron Jobs tool or search for the Cron Jobs tool in the search bar.

cPanel

2. Then, navigate to the Add New Cron Job interface and select an existing setting from common settings or specify custom runtime settings in the text input.

3. After that, enter the command and the full name of the PHP file like php /home/example/public_html/cron.php to run a cron job.

4. Finally, click the Add New Cron Job button to add the Cron job.

b) How to setup Cron Email in cPanel

1. Log into cPanel and navigate to the Advanced section to select Cron Jobs tool or search for the Cron Jobs tool in the search bar.

2. Then, navigate to the Cron Email interface in the Cron Job and enter the new email you want to receive cron emails from.

3. Finally, click the “Update Email” button to update your email. If your cron is running frequently, you can disable receiving emails by writing >/dev/null 2>&1 at the end of the command.

c) How to Edit or Delete Existing Cron Jobs in cPanel

1. Log into cPanel and navigate to the Advanced section to select Cron Jobs tool or search for the Cron Jobs tool in the search bar.

2. Then, navigate to the Cron Jobs interface to view the current cron jobs.

3. After that, select the job and click on the Delete or Edit link button to edit or delete a specific cron job.

Table of Contents