./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc/ --enable-inline-optimization --enable-shared --enable-opcache --enable-fpm --with-fpm-user=php --with-fpm-group=web --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-pcntl --enable-shmop --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-sockets --enable-intl --with-curl --with-zlib --enable-zip --with-bz2 --enable-xml --with-pcre-dir --with-gd --enable-static --enable-wddx --with-xmlrpc --with-libdir=/usr/lib64 --with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/lib64 --with-png-dir=/usr/lib64 --enable-maintainer-zts --enable-pthreads
centos7源码安装php5.6并安装pthreads扩展
原文地址:http://blog.51cto.com/12173069/2123545