How to Create a Cronjob in cPanel

Cron jobs are scheduled tasks that run automatically on your server at specific times or intervals. They are useful for automating repetitive tasks like backups, sending emails, or running scripts.

Follow this guide to create a cron job for running a PHP script once per day.

 

1. Log in to your cPanel account.


2. In the Advanced section, click on Cron Jobs.


3. Under Add New Cron Job, click on the Common Settings drop-down menu and select an appropriate option such as Once Per Day or another suitable option.

4. Enter the location of your cron job PHP file or the command you want to run in the Command field.

5. Click on Add New Cron Job.


We hope this tutorial is helpful to you.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Reset cPanel's Account Password

If you have access to your cPanel account, follow these steps to reset your password: 1. Log in...

How to Change the PHP Version on Your Domain in cPanel

Some software requires a different version of PHP. You can switch the PHP versions using cPanel....

How to Reset the PHP Version to the Default Version in cPanel

If you want to reset the PHP version to the default version, follow these instructions:1. Log in...

How to Set the PHP Version per Domain in cPanel

In this article, we will demonstrate how to use cPanel to set different PHP versions for...

How to Set the PHP Version per Directory in cPanel

Do you want to use different PHP versions per directory? You can do this using cPanel and the dot...

Powered by WHMCompleteSolution