CodeIgniter + Command Line + Cron + Cpanel

Trainee Asked on October 10, 2019 in Cpanel.
Add Comment
2 Answer(s)

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

Reviewer Answered on October 10, 2019.
Add Comment

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

Reviewer Answered on October 10, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.