安然小屋 安然之家

安然小屋 安然之家

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

 下载:

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 位置