【昊鼎王五】在centos7基于nginx搭建WordPress服务器之PHP7.1安装与配置

【昊鼎王五】在centos7基于nginx搭建WordPress服务器之PHP7.1安装与配置

前言:

上接https://blog.csdn.net/haoding205/article/details/100173208总纲所述,本节主要讲“如何三分钟在centos7上搭建WordPress服务器之PHP7.1安装与配置”

一、搭建PHP:

1、安装前准备:

(1)校对服务器时间
(2) 配置epel源

#Centos 5.X:
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm

#CentOs 6.x:
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm

#CentOs 7.X:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

2、安装php:

yum install -y php71w php71w-cli php71w-common php71w-devel php71w-embedded php71w-fpm php71w-gd php71w-mbstring php71w-mysqlnd php71w-opcache php71w-pdo php71w-xml php71w-ldap php71w-mcrypt

检查版本

php -v

上面该命令即可安装拓展:
php-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif

你可能感兴趣的:(网站建设,升级php5.4到7.1,升级php,php升级)