./configure --prefix=/usr/local/php --with-curl --with-apxs2=/usr/local/apache2.4/bin/apxs --with-freetype-dir --with-gd --with-gettext --with-iconv-dir --with-kerberos --with-libdir=lib64 --with-libxml-dir --with-mysqli --with-openssl --with-pcre-regex --with-pdo-mysql --with-pdo-sqlite --with-pear --with-png-dir --with-xmlrpc --with-xsl --with-zlib --enable-fpm --enable-bcmath --enable-libxml --enable-inline-optimization --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-xml --enable-zip --with-pdo-mysql --with-config-file-path=/usr/local/php/peizhiwenjian/ --with-jpeg-dir=/usr/local --with-ldap
转载于:https://blog.51cto.com/12331963/2330004