Kohana 3 and CRON always accessing index.php (not following the URI argument)

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-03-19T01:29:02Z Indexed on 2010/03/19 1:31 UTC
Read the original article Hit count: 317

Filed under:
|
|
|
|

OK, I hope this is my last question about CRON jobs and Kohana 3. Note: others are not duplicates, just other problems.

Here is my CRON job (setup in cPanel)

php /home/user/public_html/index.php --uri=properties/update

As per this answer.

I have set it up so it emails me the output. It is running every 5 mins.

Unfortunately, it always emails me the source of the home page of my site (index.php or /).

I can access that URL fine in my browser, i.e. http://www.example.com/properties/update and it works and does it's job correctly. I can tell the Cron is never hitting the script because I have a file logger in place.

Would this have anything to do with .htaccess?

Has this happened to anyone before, and how did they fix it?

Many thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about kohana