思路:
下载不同的PHP源码包,解压后安装在不同的目录下,修改PHP-fpm监听的端口号
PHP安装配置参数:
./configure --prefix=/usr/local/PHP71 --exec-prefix=/usr/local/PHP71 --bindir=/usr/local/PHP71/bin --sbindir=/usr/local/PHP71/sbin --includedir=/usr/local/PHP71/include --libdir=/usr/local/PHP71/lib/PHP --mandir=/usr/local/PHP71/PHP/man --with-config-file-path=/usr/local/PHP71/etc --with-mcrypt=/usr/local/libmcrypt --with-mhash --with-openssl --with-MysqLi=/usr/local/MysqL/bin/MysqL_config --with-pdo-MysqL=/usr/local/MysqL --with-gd --with-iconv --with-zlib --enable-inline-optimization --disable-debug --disable-rpath --enable-shared --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-mbstring --enable-ftp --enable-gd-native-ttf --enable-pcntl --enable-sockets --with-xmlrpc --enable-soap --without-pear --with-gettext --enable-session --with-curl --with-jpeg-dir --with-freetype-dir --enable-fpm --without-gdbm --disable-fileinfo --enable-opcache=no