How do I create a cron job?

  1. Knowledge Base
  2. Web Hosting / Advanced
  3. How do I create a cron job?

To create a cron job in cPanel is quite easy, yet it provides excellent functionality by allowing the execution of scripts at set times.

  1. Login to cPanel.
  2. Go to the “Cron Jobs” option.
  3. Specify the frequency of the cron and enter the command needing to be run.
  4. Save.

If you need to load a custom php.ini to utilise custom environmental values, you may do so by running the command as such:

php -i /home/cpanelusername/public_html /home/cpanelusername/public_html/path/to/file.php
Support Centre