Set up a cron job
Open the Cron Jobs page
Log in to cPanel through your client area or at
yourdomain.com/cpanel. Go to Advanced and click Cron Jobs.Set the schedule
Use the dropdown menus to pick how often the job runs (e.g. every hour, once a day, once a week), or enter values manually in the minute/hour/day/month/weekday fields.
Enter the command
Type the full command to run your script. See the examples below for common formats.
Common command formats
PHP scripts
username with your cPanel username and adjust the path to match your script’s location.
Python scripts
Using curl
Suppress email notifications
By default, cPanel sends an email every time a cron job runs. To disable this, add>/dev/null 2>&1 at the end of the command:
Test before scheduling
You can verify a command works by running it over SSH before adding it as a cron job. Log in via SSH and paste the same command you plan to use. If it produces the expected output, the cron job will work.Cron jobs run according to the server’s timezone. Check the time shown at the top of the Cron Jobs page in cPanel to see what timezone your server uses.