Setting up cron jobs with cPanel

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:

  1. Log on to your cPanel Interface.
  2. Go to ”Advanced’ section.
  3. Click on “Cron Jobs”.
  4. Select the specific time from the lists provided.
  5. 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).

Check the relevant screen captures:



Leave a Reply