Ask Question

Menu


How to create a cron job in cPanel php


Con job is a Linux system process which is used to scheduling of repetitive tasks once per day, once per minute, once per month etc.

In this example I’ll going to discuss How to create cron job in cPanel.

Real world example

  1. Auto send birthday wish
  2. Send reminder
  3. Auto backup

Please follow the below step to create cron job in Cpanel:

Step 1:

Login your cPanel with your userid and password.

Step 2:

Then go to Advanced section of cPanel and click on the corn job link.

corn

Step 3:

Then you find a page like this.

corn

Choose a specific time from the common setting in which time you want to run your file from server side.

Step 4:

Now in command enter your file path like below example and click on the Add new corn job button.

corn

congratulation your corn job is created.

corn

Thank you !



Buy Template