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.

  1. Logging into the cPanel interface for your hostmonster account, scroll to the bottom and look in the "Advanced" section
  2. Select "Cron Jobs." It is represented with a calendar icon
  3. 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
  4. 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
  • Select the number of times that you would like the cron job to run
  • See if it works -you can check whether or not a Cron Job has been run in the Logs menu in Drupal
  • Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

    Comments

    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

    on Bluehost through cpanel:

    /usr/bin/lynx -source http://example.com/cron.php

    As long as i was with Bluehost following command worked perfectly for me..

    wget -q -O /dev/null http://www.example.com/cron.php

    ------------
    Volvo, Video, Velcro. (I came, I saw, I stuck around.)