CodeIgniter Cron Job through Cpanel

后端 未结 5 1032
轻奢々
轻奢々 2020-12-20 08:08

Ok I looked at every other thread and have done exactly what they\'ve done and what it says in the manual and I can NOT figure this out for the life of me. The results of th

5条回答
  •  感情败类
    2020-12-20 08:56

    The default PHP install you are using was probably compiled as CGI-FCGI, not for CLI. It depends on your host and/or server, but you'll need to search for your PHP install for the command line interface, and then use that in your cron job. I had the exact same problem on Hostmonster, and my cron command ended up being:

    /ramdisk/bin/php5-cli ~/public_html/sitefolder/index.php controller method
    

    For me, the PHP I needed was in /ramdisk/bin/php5-cli.

提交回复
热议问题