- ./configure --prefix=/usr/local/php \
- --with-config-file-path=/usr/local/php/etc \
- --enable-inline-optimization \
- --disable-debug --disable-rpath \
- --enable-shared --enable-opcache \
- --enable-fpm --with-fpm-user=www \
- --with-fpm-group=www \
- --with-mysql=mysqlnd \
- --with-mysqli=mysqlnd \
- --with-pdo-mysql=mysqlnd \
- --with-gettext --enable-mbstring \
- --with-iconv \
- --with-mcrypt --with-mhash --with-openssl \
- --enable-bcmath \
- --enable-soap \
- --with-libxml-dir \
- --enable-shmop --enable-sysvmsg \
- --enable-sysvsem --enable-sysvshm \
- --enable-sockets --with-curl --with-zlib \
- --enable-zip --with-readline
来源: http://www.bubuko.com/infodetail-2659975.html