由於項目需要顯示驗證碼登錄系統,所以這里需要開啟php的gd擴展
這邊提供安裝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 --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
空格跟上自己想要的擴展# yum --enablerepo=remi-php56 install php-gd php-mysql php-mbstring php-xml php-mcrypt
忘記的擴展在運行一次就ok了
安裝完后重啟php-fpm即可!
## 加入服務 chkconfig --add httpd
chkconfig --add php-fpm
## 開機自啟 chkconfig httpd on
chkconfig php-fpm on