./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 source Installation php5.6 and install pthreads extension