How To Set Up A Cron Job with cPanel

All of our shared web hosting plans are coming with the possibility to set up cron jobs. 

Cron Jobs are linux commands which allow you to schedule a task to be performed automatically and periodically.

Please find below the steps required to achieve the set up of your custom cron jobs.

1) Login to cPanel

2) At the bottom, in the Advanced section, click on the Cron Jobs icon

3) At the middle of the fold, you'll notice a field where you can set up an email address where a notification will be send for each task completed.

4) Then, you'll have the schedule functions which allow you to set the timing for the command to be executed. You are able to set predefined settings such as once a day, once an hour..

5) In the Command field you would need to type the following :

php -q /home/"yourcpanelusername"/public_html/path_to_your_file

For instance : 

php -q /home/besthost/public_html/folder/mycronjob.php

That's it. Once you cron job is set up, it will be triggered for each period you have defined.
  • 1075 Users Found This Useful
Was this answer helpful?

Related Articles

How to Create An Addon Domain in cPanel

Description : Disclaimer : This how to assumes that you have changed your DNS settings at your...

Is the Shell Access Available on Shared Web Hosting Accounts?

Is the Shell Access (SSH) available on our Shared Web Hosting offers?Yes, we do offer a SSH...

How to Make a cPanel Full Account Backup

Description : Learn How to create your own Website BackupNote : With this tutorial you'll be able...

How to Create a MySQL Database in cPanel

Note : This tutorial will teach you how to create a database and how to add an authorized user to...

[VIDEO] How to change your cPanel Layout

 Description : Learn how to change your cPanel layout1) Login to your cPanel web hosting...