安装PHP
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi-php72
yum search php72
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

清除版本
yum -y remove php*

安装php
yum -y install php72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml php72w-redis

开始跑了就说明安装正确(过程可能会有点长)
启动php-fpm服务
systemctl enable php-fpm.service
systemctl start php-fpm.service

本文档详细介绍了如何在CentOS系统上安装PHP 7.2,配置PHP-FPM和Nginx,以及搭建WordPress站点的过程,包括数据库创建、权限分配和WordPress的基本配置。
最低0.47元/天 解锁文章
953

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



