XL Hosts NL Knowledgebase

How to create a cron job in cPanel

Schedule automated scripts to run at set times from cPanel.

Back to all guides
Advanced

How to create a cron job in cPanel

Open Cron Jobs in cPanel. Choose a common schedule or set your own minute, hour, day, month and weekday values. Enter the command that should run, such as a PHP script path. Use cron jobs for scheduled imports, cleanup tasks, email queues, reports or maintenance scripts. Do not run heavy jobs every minute unless the script is lightweight, because frequent tasks can use resources quickly. Send output to an email only when needed, or redirect it to avoid mailbox noise. Test the command carefully before relying on it for production automation.

Need help? XL Hosts NL customers can open a support ticket from the client area and our team can check your hosting account safely.