type
status
slug
summary
tags
category
icon
password
new update day
Property
Oct 22, 2023 01:31 PM
created days
Last edited time
Oct 22, 2023 01:31 PM

总结之——CentOS7 yum 安装 PHP 7.0, 7.1 & 7.2

第一步:安装 yum-utils 并开启 EPEL repository

1. 安装 yum-utils

2. 下载并安装 remirepo

3. 根据需要配置相应的 PHP 7.x

  • PHP 7.0
  • PHP 7.1
  • PHP 7.2
  • PHP 7.3

4. 安装PHP以及相关依赖


你可以使用下面的命令查看所欲的 PHP 模块、按照需求进行添加

5. 安装完成验证一下

6. 也可以通过 PHP 测试页面进行验证

  1. 开启 Apache httpd
  1. /var/www/html 文件夹下面新建一个 info.php 文件、输入以下内容
  1. 然后进行访问查看
future-architect/vulsUbuntu Possible missing firmware error