开发者

Php command on Crontab and in PHP-Cli, same? (Codeigniter)

开发者 https://www.devze.com 2023-02-19 09:32 出处:网络
I\'m with a trouble in my webhost. I have a CodeIgniter php-cli Script that is running on the SSH Terminal but when I put it in Crontab does not run, gives me several errors. The most weird thing is t

I'm with a trouble in my webhost. I have a CodeIgniter php-cli Script that is running on the SSH Terminal but when I put it in Crontab does not run, gives me several errors. The most weird thing is that this php-cli Script have been running by months.

What could be the problem and how can I start 开发者_开发百科to solve it?

Restart the php-cli deamon should be a start?

Best Regards,


If you are using v2.0.0 then you will need to make sure you set the current working directory of the crontab to the level of your index.php.

Or, upgrade to v2.0.1 which will do this for you.

Remember that when you get error messages you should post them in your question, otherwise answers end up just being guesswork.

0

精彩评论

暂无评论...
验证码 换一张
取 消