Last updated April 14, 2011. Created by jchampag@drupal.org on January 10, 2008.
Edited by olafveerman, planstoprosper, LeeHunter. Log in to edit this page.
- Logging into the cPanel interface for your hostmonster account, scroll to the bottom and look in the "Advanced" section
- Select "Cron Jobs." It is represented with a calendar icon
- Select "Standard" (This step is unnecessary in Bluehost)
- Do not use an email address or you will be hit with a notification every time the cron job runs
- Enter the following command: php /home/+++Your hostmonster login username+++/public_html/cron.php
- Your home directory may include a number, such as /home2/
- This is only for your main domain, subdomains are in different folders
Comments
more information
i struggled with this for 2 years, and finally found the correct format for the command line.
You can simply use:
php -cd /home/USERNAME/public_html/SITE_DIRECTORY/cron.php
If you want it to use your public_html/php.ini file, you can use the following:
php -c /home/USERNAME/public_html/php.ini /home/USERNAME/public_html/SITE_DIRECTORY/cron.php
~ grandmaster
This worked for me
on Bluehost through cpanel:
/usr/bin/lynx -source http://example.com/cron.php