1、添加epel源
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum repolist ##检查是否已添加至源列表
2、安装php rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
#删除rpm
rpm -qa | grep webstatic
rpm -e 上面搜索到的包即可
3、安装php和依赖
yum install -y php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64 php70w-pgsql
php71w-cli.x86_64 7.1.33-1.w7 @webtatic
php71w-common.x86_64 7.1.33-1.w7 @webtatic
php71w-devel.x86_64 7.1.33-1.w7 @webtatic
php71w-fpm.x86_64 7.1.33-1.w7 @webtatic
php71w-gd.x86_64 7.1.33-1.w7 @webtatic
php71w-mbstring.x86_64 7.1.33-1.w7 @webtatic
php71w-mcrypt.x86_64 7.1.33-1.w7 @webtatic
php71w-mysql.x86_64 7.1.33-1.w7 @webtatic
php71w-pdo.x86_64 7.1.33-1.w7 @webtatic
php71w-pgsql.x86_64 7.1.33-1.w7 @webtatic
php71w-xml.x86_64
4、安装php启动器
yum install -y php70w-fpm
5、修改配置文件
vi /etc/php.ini
查找cgi.fix_pathinfo 修改为=0;
2304




被折叠的 条评论
为什么被折叠?



