How do I create a cron job?

Solution

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
 
Was this article helpful? yes / no

Article details

Article ID: 30

Category: Advanced

Rating (Votes): Article not rated yet (0)

 

All Information provided is treated as confidential, Please refer to our Privacy Policy:
View Our Privacy Policy Here