cPanel, L.L.C. uses Interface Analytics to help us understand how our customers use cPanel & WHM. We take your privacy very seriously, and you can stop data collection at any time. Find out more about Interface Analytics.

Will you allow Interface Analytics data collection for your account?

Skip to main content
Skip to main content

Cron Jobs

Cron jobs allow you to automate certain commands or scripts on your site. You can set a command or script to run at a specific time every day, week, etc. For example, you could set a cron job to delete temporary files every week to free up disk space.

Warning: You need to have a good knowledge of Linux commands before you can use cron jobs effectively. Check your script with your hosting administrator before adding a cron job.

Cron Email

Send an email with the output every time the cron job runs. less »

You can have cron send an email every time it runs a command which produces output. If you do not want an email to be sent for an individual cron job, you can redirect the command’s output to /dev/null. For example: mycommand >/dev/null 2>&1

Add New Cron Job

PHP command examples:

General example: /usr/local/bin/php /home/example/public_html/path/to/cron/script

Domain-specific example: /usr/local/bin/ea-php99 /home/example/domain_path/path/to/cron/script In the above example, replace “ea-php99” with the PHP version assigned to the domain you wish to use. Look in the MultiPHP Manager for the actual PHP version assigned to a domain.

Current Cron Jobs

Minute Hour Day Month Weekday Command Actions
0,30 * * * * test Edit     Delete

Delete this cron job?