CodeIgniter + Command Line + Cron + Cpanel

后端 未结 4 682
我在风中等你
我在风中等你 2020-12-10 02:54

SOLVED: Crap... why is it always you figure something out right AFTER you finally decided to ask for help!!

If anyone else is having this problem, try running from

相关标签:
4条回答
  • 2020-12-10 03:28

    This was the answer:

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

    0 讨论(0)
  • 2020-12-10 03:31

    For me this is what worked:

    php54 -f /home/{cpanel_user}/public_html/index.php controller function
    
    0 讨论(0)
  • 2020-12-10 03:33

    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

    0 讨论(0)
  • 2020-12-10 03:46

    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.

    0 讨论(0)
提交回复
热议问题