Cron run ?!? I can't get it to crawl!
27 Oct
Posted by webthingee
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:



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


| Attachment | Size |
|---|---|
| wherecron.jpg | 26.08 KB |
| herecron.jpg | 57.78 KB |
| activatecron.jpg | 74 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
Great post
Thanks
Post new comment