CodeIgniter + Command Line + Cron + Cpanel CodeIgniter + Command Line + Cron + Cpanel codeigniter codeigniter

CodeIgniter + Command Line + Cron + Cpanel


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.