Creating Drupal Cron Jobs on Hostgator

The only issues I've had in moving my Drupal sites from one host to another is the Cron jobs. The previous one I was using was calling PHP5 correctly, but wasn't loading the right directory to run the job in and failed out every time.

According to this forum post, the correct way to kick off a Cron job on Hostgator is this:

cd '/home/username/public_html/' ; php -q 'cron.php' > /dev/null ;

Share this


Subscribe to RSS - cron