linux php多版本
ecshop还非php5.2
解压
gzip
-
cd
php-5.2.14-fpm-0.5.14.
diff
.gz | patch -d php-5.2.14 -p1
打上php-fpm补丁再安装php;
libxml2版本不对,安装旧版本不然php编译报错。安装在这里/usr/local/libxml2-2.7.8/dist
./configure -prefix=/usr/local/php-5.2.17/ --with-libxml-dir=/usr/local/libxml2-2.7.8/dist --enable-fastcgi --enable-fpm --with-mysqli=/usr/local/bin/mysql_config --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --with-mysql --with-curl
最好 rm config.cache
php-fpm 启动报please specify user and group other
修改php-fpm.conf
<!-- <value name="user">nobody</value> -->
Unix group of processes
<!-- <value name="group">nobody</value> -->
\修改成 nginx 指定的用户与组\
<value name="user">www</value>
Unix group of processes
<value name="group">www</value>