Cron run ?!? I can't get it to crawl!

27 Oct in code, drupal
Cron is one of the most important aspects of having a drupal site. And it can be a pain to figure out, configure, and be sure it's running. I have tried several different processes, and here is the one I like right now...
I am on a vps, but should work for shared as well.

I am running x3 cPanel

I am able to run cron successfully with:

php /home/INSERT+DIR+NAME+HERE/public_html/cron.php


wherecron.jpg

herecron.jpg

activatecron.jpg
AttachmentSize
wherecron.jpg26.08 KB
herecron.jpg57.78 KB
activatecron.jpg74 KB

Comments

Use CURL

Using CURL instead of cron ensures that it is run on a particular "site" from the sites folder. So if you have subdomains that is somewhat necessary, and in general seems like a good practice since it has all the Apache environment variables.

cron http://example.com/cron.php
cron http://sub1.example.com/cron.php

I entered your blog from

I entered your blog from google search. You really have done a good effort. Thanks for the wonderful blog. regards

Great post

if you have subdomains that is somewhat necessary, and in general seems like a good practice since it has all the Apache environment variables.

Thanks

Thanks for sharing your method. As for me, I find Drupal books very helpful. At this pdf SE you may find some of Drupal books: http://www.pdfok.com/drupal-cron . I hope it will help you too.

Post new comment