How can I force PHP Version for Command Line?

前端 未结 7 1794
说谎
说谎 2020-12-17 17:01

I am hosted with 1and1.com, and I have setup my files to be parsed with php5 using .htaccess.

But that only works in apache, and not in command line, wh

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-17 17:26

    there must be two PHP directories and one of them should be the default one. try to find out php5's path from the root of your server and use full path at your cron job.

提交回复
热议问题