Configuring Cron

lachmac - December 4, 2008 - 15:08

Hi,

I run a LAMP configuration with Apache 2.2.3, php 5 and Drupal 6.6. I am getting closer with the cron set-up, but not quite there. I can access Cron via a browser (http://mysite.com/cron) and that will cause cron to run. I have admin access through Webmin, and the site is running in the same network. PHP & WGET are found under /usr/bin/, and the site (and cron.php) is found under /var/www/mysite.com/.

I entered: /usr/bin/php /usr/bin/wget ./lachmann.se/ cron

and got: Parse error: syntax error, unexpected '`' in /usr/bin/wget on line 496

if I do: /usr/bin/wget /var/www/lachmann.se/cron.php

It will tell me the scheme is not supported.

Anyone with a really good idea on how to make this work?

This handbook page should

add1sun - December 4, 2008 - 15:48

This handbook page should set you to rights: http://drupal.org/cron

Basically, you don't want to try to fire the file directly from the server path. You want to access it from the web. So, using http://lachmann.se/cron.php with wget is what you want.

Lullabot loves you
--------------------------------------
Join us at Do It With Drupal!
A large scale, curated education event
December 10-12, New Orleans

Got it working...thanks..

lachmac - December 9, 2008 - 08:26

Missed the HTTP part...

Together is better*

Not possible at all host providers

EliMarko - December 18, 2008 - 16:49

Setting a cron to call http address is not possible with all hosts.
I had to consult my host, and they provided an additional cron2.php file that called cron.php via http.

Cant the Drupal team set the cron.php file so it can also run smoothly from shell?

 
 

Drupal is a registered trademark of Dries Buytaert.