php-5.6.29 下载地址 及编辑参数 注意事项
下载:

wget http://ee1.php.net/distributions/php-5.6.29.tar.gz
编译配置:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-fpm-user=hnmamanginx --with-fpm-group=hnmamanginx --enable-fpm --enable-opcache --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --disable-fileinfo --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-exif --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-ftp --with-gettext --enable-zip --enable-soap --disable-ipv6 --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl=/usr/local/openssl --disable-debug
============================================================================
--with-apxs2=/usr/local/apache2/bin/apxs 静态编译 支持 apache2以上版本支持 不加 不会生成apache的 so文件
--with-openssl=/usr/local/openssl 静态编译 指定openssl 位置
编译生成:
make ZEND_EXTRA_LIBS='-liconv'
记得使用 ZEND_EXTRA_LIBS='-liconv'
--with-apxs2=/usr/local/apache2/bin/apxs 静态编译 支持 apache2以上版本支持 不加 不会生成apache的 so文件
--with-openssl=/usr/local/openssl 静态编译 指定openssl 位置
版权声明
本文仅代表作者观点,不代表Csuper立场。
本文系作者授权百度百家发表,未经许可,不得转载。