Difference between revisions of "Setting up cron jobs with cPanel"

From Citadel Servers Wiki
Jump to navigation Jump to search
(Created page with "<p style="text-align: left;"><br />Setting up cron jobs with cPanel</p> <p>What is a cron?</p> <p>A cron is a service that allows a user to automatically execute a script at a...")
 
(No difference)

Latest revision as of 13:10, 20 August 2019


Setting up cron jobs with cPanel

What is a cron?

A cron is a service that allows a user to automatically execute a script at a specific time.

For example, you can set a particular PHP script to be automatically executed everyday at midnight.

Set up cron jobs through cPanel using this procedure:

Log on to your cPanel Interface.

  1. Go to Advanced' section.
  2. Click on "Cron Jobs".
  3. Select the specific time from the lists provided.

You should enter the command to run in the "Command" field.

Note:

You should make sure to enter the proper command and the full path to the file.

(for eg.: /usr/bin/php /home/user/public_html/cron.php).