./configure --prefix=/usr/local/php7
--with-config-file-path=/usr/local/php7/etc
--with-config-file-scan-dir=/usr/local/php7/etc/php.d
--with-mcrypt=/usr/include
--enable-mysqlnd
--with-mysqli
--with-pdo-mysql
--enable-fpm
--with-fpm-user=nginx
--with-fpm-group=nginx
--with-gd
--with-iconv
--with-zlib
--enable-xml
--enable-shmop
--enable-sysvmsg
--enable-inline-optimization
--enable-mbregex
--enable-mbstring
--enable-ftp
--enable-gd-native-ttf
--with-openssl
--enable-pcntl
--enable-sockets
--with-xmlrpc
--enable-zip
--enable-soap
--without-pear
--with-gettext
--enable-session
--with-curl
--with-jpeg-dir
--with-freetype-dir
--enable-opcache
--enable-sysvshm
--enable-sysvsem
扩展
./configure --bindir=/usr/local/php7/bin --with-php-config=/usr/local/php7/bin/php-config