摘要: 刚在阿里云配置云主机,系统是CentOS,刚配置好了PHP7.2,朋友的站点上传上来,运行行情提示: 1522#0: *150 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ...
刚在阿里云配置云主机,系统是CentOS,刚配置好了PHP7.2,朋友的站点上传上来,运行行情提示:[error] 1522#0: *150 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime(),需要PHP5.X,这时想到php-fpm多监听一个端口,是不是可以实现多版本PHP运行,网上一搜果然真有,便动手干起来
make && make test && make install,我这里make test是有错误的,但我也install了,也成功,没有时间去细究,先放这
cd /安装目录/sbin,./php-fpm,提示[25-Aug-2019 10:43:45] ERROR: failed to open configuration file '/usr/local/php/php5445/etc/php-fpm.conf': No such file or directory (2),将php-fpm.conf.default复制一份,改名php-fpm.conf,vim php-fpm.conf,把user和group值改成nobody,监听端口改成9001
沙发等你来坐!