Steps to create cron job in cpanel

bhawanisingh

Administrator
Staff member
Cron job is mainly used to scheduled task for future. We can set a particular time to to execute task, we can also schedule Linux command to run on particular time.
You can follow below steps to create cron job in cpanel:
  • Login to cpanel
  • Click on "Cron jobs" in "Advanced" section.
  • If you need to set an email cron then you have to add your email address.
  • Now you have to set the time interval and for that you have to understand it how it works.
    • Common settings: You can use this option to select predefined settings.
    • Minute: You can set the minute of each hour to execute the command.
    • Hour: You can set the hour of each day to execute the command.
    • Day: You can set the day of the month to execute the command.
    • Month: You can set the month of the year to run the cron job.
    • Weekday: You can select the days of the week on which we want to run it.
  • You can enter the command :
Code:
php /home/hoststud/public_html/cronjob.php
  • At last click on "Add new cron job"
 
Top