Problem Running PHP script through Cron

Problem Running PHP script through Cron

Posted by: osoisimo
Posted on: 2009-06-29 17:48:00

Hey I am using the web panel to set up cron. I have the following command set to run:
/usr/local/bin/php5/home/osoisimo/rowerslog.com/cron/send_reminders.php

it should run every 10 min. However, it has yet to run. I have checked the script itself and it works. Why o why hasn't it run?

Re: Problem Running PHP script through Cron

Posted by: sdayman
Posted on: 2009-06-29 19:20:00

Try:
/usr/local/php5/bin/php /home/osoisimo/rowerslog.com/cron/send_reminders.php

Or:
/usr/bin/curl http://rowerslog.com/cron/send_reminders.php

The first is a direct PHP run. The second is my cheater way which makes the request via web.

-Scott

Re: Problem Running PHP script through Cron

Posted by: osoisimo
Posted on: 2009-06-29 22:48:00

Yep I had previously tried the first one and it didn't make a difference. The second one however did it so thanks!

P.S. Does anybody know why it didn't work the other way? It should work shouldn't it?

Tags: web panelcronreminders