Community Documentation

Setting up cron on Hostmonster/Bluehost through the cPanel interface

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
  • 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

    About this page

    Drupal version
    Drupal 5.x
    Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.