日期:2017年11月29日 作者 : 廖剑曦
# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm # yum list php* 可以发现里面有很多版本的php 选择对应的安装的包 # yum -y install php56w php56w-mysql php56w-gd libjpeg* php56w-ldap php56w-odbc php56w-pear php56w-xml php56w-xmlrpc php56w-mbstring php56w-bcmath 拓展 #yum -y install epel-release #yum groupinstall "development tools" #yum -y install mhash mhash-devel mcrypt 个性配置 配置php.ini #vi /etc/php.ini 找到 /date.timezone date.timezone = PRC 然后重启 #systemctl restart mysql.service #systemctl restart httpd.service ```