centos6编译安装php7
https://www.cnblogs.com/wenwei-blog/p/6261637.html
https://www.cnblogs.com/imzye/p/5109770.html
centos6安装php7
#源码位置 D:\share\src\php-web #安装依赖 yum install gcc gcc-c++ pcre* openssl* gd-devel* zlib-devel pcre-devel libxml2-devel curl-devel libzip libzip-devel #安装libmcrypt tar -xf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8 ./configure make && make install vim /etc/ld.so.conf 添加如下内容 /usr/local/lib 执行 ldconfig #安装php7 tar -xf php-7.0.14.tar.gz cd php-7.0.14 ./configure \ --prefix=/opt/php7 \ --exec-prefix=/opt/php7 \ --bindir=/opt/php7/bin \ --sbindir=/opt/php7/sbin \ --includedir=/opt/php7/include \ --libdir=/opt/php7/lib/php \ --mandir=/opt/php7/php/man \ --with-config-file-path=/opt/php7/etc \ --with-mcrypt=/usr/include \ --with-mhash \ --with-openssl \
--with-mysql=mysqlnd \ --with-mysqli=shared,mysqlnd \ --with-pdo-mysql=shared,mysqlnd \ --with-gd \ --with-iconv \ --with-zlib \ --enable-zip \ --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-opcache \ --enable-fpm \ --without-gdbm \ --disable-fileinfo make && make install cp /opt/php7/etc/php-fpm.conf.default /opt/php7/etc/php-fpm.conf cp /opt/php7/etc/php-fpm.d/www.conf.default /opt/php7/etc/php-fpm.d/www.conf cp /opt/tools/php-7.0.14/php.ini-production /opt/php7/etc/php.ini cp /opt/tools/php-7.0.14/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm7 chmod 755 /etc/init.d/php-fpm7 chkconfig --add php-fpm7 chkconfig php-fpm7 on 启动php service php-fpm7 start
discuz3.4
https://www.cnblogs.com/huiy/p/8335505.html