Scheduling Cron Jobs and Other Advanced Settings
Set up scheduled tasks (backups, sitemaps, CMS housekeeping) with cron in cPanel. Schedule format, common commands, advanced settings.
Cron jobs let you run scripts on a schedule — every minute, every night, every Sunday at 3 a.m. They are essential for tasks like database backups, sitemap regeneration, and CMS housekeeping. cPanel exposes a friendly interface on top of standard Linux cron.
Create a cron job
- Open Advanced → Cron Jobs in cPanel.
- Set an email address that should receive output and errors (optional but recommended).
- Choose the schedule with the Common Settings dropdown, or fill the five time fields manually.
- In the Command field, enter the command to run. Examples:
php /home/USER/public_html/wp-cron.php— trigger WordPress cron manually.cd /home/USER/public_html && php artisan schedule:run— Laravel scheduled tasks./usr/bin/mysqldump -u USER -pPASSWORD DB > /home/USER/backups/db.sql— nightly database dump.
- Click Add New Cron Job.
Cron schedule format
Five fields: minute, hour, day-of-month, month, day-of-week. * means "every".
*/15 * * * *— every 15 minutes0 3 * * *— 03:00 every day0 3 * * 0— 03:00 every Sunday0 0 1 * *— midnight on the 1st of every month
Other useful Advanced settings
- Indexes — toggle directory listings on or off (off is safer).
- Error Pages — customise 404 and 500 pages.
- MIME Types — add file extensions cPanel does not recognise out of the box.
- Apache Handlers — bind file extensions to specific handlers (rarely needed).
- Track DNS — quick lookup for the current DNS resolution of any host.
Tips
- Always test the command from SSH (or by running it manually once) before scheduling — cron failures are silent unless you set the notification email.
- Avoid scheduling many jobs at the same minute — stagger them across the hour.
- Do not run a cron more often than necessary; very frequent jobs (every minute) on shared hosting can trigger resource warnings.
Still need help?
Our support team replies to tickets around the clock.
Related articles
Creating and Managing MySQL Databases
Create a MySQL database, add a user, connect from your application, and manage tables with phpMyAdmin. Avoid the common pitfalls.
Web HostingcPanel: A Quick Tour for New Users
A plain-English tour of cPanel: Files, Domains, Email, Databases, Security, Software, Metrics — what each section is actually for.
Technical TroubleshootingDiagnosing Slow Site Performance
Find the cause of a slow site: images, caching, plugins, database. PageSpeed-grade improvements you can make this week.