Rocky linux8 安装php8.0
- 1.安装remi源
- 2.列出php版本
- 3.变更php版本,Rocky8有提供php8版本,所以切换Rocky8提供的版本,而不是remi提供的版本,不过remi有提供php8.1和php8.2版本。
- 4.切换成remi提供的8.0版本
- 5.安装php
- endl
1.安装remi源
dnf install epel-release
dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm

2.列出php版本
dnf module list php

3.变更php版本,Rocky8有提供php8版本,所以切换Rocky8提供的版本,而不是remi提供的版本,不过remi有提供php8.1和php8.2版本。
dnf module reset php
dnf module enable php:8.0

4.切换成remi提供的8.0版本
dnf module enable php:remi-8.0

5.安装php
dnf install php php-cli php-curl php-mysqlnd php-gd php-opcache php-zip php-intl

endl