CodeIgniter + Command Line + Cron + Cpanel

懵懂的女人 提交于 2019-11-28 09:51:27
MikeCruz13

This was the answer:

Use /usr/local/bin/php instead of /usr/bin/php to get codeigniter to pick up on the URI segments.

Here is solution first you need to find path from phpinfo document_root path

php5 /home/abc/public_html/index.php folder_name controller_name function_name

It's 100% working

I'm glad you got it working Mike. I ran into similar problems and ended up using the CI Cron Job Bootstrapper on a recent project that was running on a cPanel host. I'm just posting this incase it helps someone else.

For me this is what worked:

php54 -f /home/{cpanel_user}/public_html/index.php controller function
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!