Google+ Badge

Tuesday, February 17, 2015

How to Setup PHP Cron Job on Cpanel

A cron job is simply a task that you schedule to run automatically at specific intervals. For example, if you want to back up a file every six hours, you can set this up easily using cPanel's cron jobs feature.

Step 1 - Login to Cpanel account

Step 2 - Go to bottom of the page and select "Cron Job" Option.

Step 3 -  Click on "Cron Job" Option, we can see the configuration section.

Step 4 - Update your E-mail Address, so that you can get the updates of Cron Job running output.

Step 5 - In Common Setting, either you can select the default configuration or you can set time schedule manually.

Note : In command section, as we are using PHP script, we must use PHP in command option with absolute path.

Step 6 -  Finally, check the Cron Job is working as per the specified time schedule. We can also check updated mail account.

That's it......