首先,添加源

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

然后安装

yum install php70w php70w-curl php70w-pdo php70w-fpm

等等,需要什么扩展就这么安装。

安装完成之后,

service php-fpm startm start