这边提供安装php5.6的yum方法扩展自选。
运行下列命令# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install php-gd --enablerepo=remi-php56
重启php-fpm
php -m 查看。