php源码编译:
​​​http://php.net/manual/en/install.unix.nginx.php​

cd ../php-x.x.x
./configure --enable-fpm --with-mysql
make
sudo make install

如实就安装好了如下模块!

[root@localhost php-5.6.30]# php -m
[PHP Modules]
Core
ctype
date
dom
ereg
fileinfo
filter
hash
iconv
json
libxml
mysql
mysqlnd
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter