Question

I have problems setting up a cron using CodeIgniter. I've followed the documentation and set up a test cron

* * * * * php /home/USERN/public_html/spider/index.php tools message

But this doesn't work. The output is just the index.php default controller, and not tools/message. When I run it in the terminal on the server, I get the results that I expect. Is there something I am doing wrong, or do I need to change something on the server?

Was it helpful?

Solution

For cPanel servers, in order to for CI to use the URI segments right, You'll have to use

/usr/local/bin/php
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top