./configure --prefix=/usr/local/php55 --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir=/usr/local/freetype --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-gettext --disable-fileinfo --enable-opcache --enable-intl --with-xsl
PS:
php安装扩展的时候,执行phpize提示:
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module。
解决方法:
1、复制php解压文件夹里面的ext到php安装根目录。
2、修改./ext/openssl/config0.m4 为 config.m4
3、执行phpize。