php常用编译指令

./configure  

--prefix=/usr/local/php7 

--with-apxs2=/usr/sbin/apxs  

--enable-fpm  

--with-fpm-user=www  

--with-fpm-group=www  

--enable-soap  

--with-openssl  

--with-openssl-dir  

--with-mcrypt  

--with-pcre-regex  

--with-zlib  

--with-iconv  

--with-bz2  

--enable-calendar  

--with-curl  

--with-pcntl  

--with-cdb  

--enable-dom  

--enable-exif  

--with-pcre-dir  

--enable-ftp  

--with-gd  

--with-jpeg-dir  

--with-png-dir  

--with-freetype-dir  

--with-gettext  

--with-gmp  

--with-mhash  

--enable-mbstring  

--with-libmbfl  

--with-onig  

--enable-pdo  

--with-pdo-mysql  

--with-zlib-dir  

--with-readline  

--enable-session  

--enable-shmop  

--enable-simplexml  

--enable-sockets 

--enable-sysvmsg  

--enable-sysvsem  

--enable-sysvshm  

--enable-wddx  

--with-libxml-dir  

--with-xsl  

--enable-zip  

--enable-mysqlnd  

--with-mysqli=/usr/bin/mysql_config  

--without-pear