Вопрос

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?

Это было полезно?

Решение

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

/usr/local/bin/php
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top