Update to specify php 8.1

Fedora Server 38 came out and it uses 8.2 by default, so now we have to specify 8.1 when installing.
This commit is contained in:
Loki 2023-08-06 18:58:26 -07:00 committed by GitHub
parent 9900d312ea
commit 884b1d4d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,7 @@ systemctl enable mariadb
``` ```
### PHP 8.0 ### PHP 8.0
We recommend the remi repo to get the latest php packages. We recommend the remi repo to get the latest php packages. (Skip to next section if on Fedora 38)
If on Fedora Server 37, skip the "Install Repos" step and instead install php-process with "dnf install php-process". Then, continue at the "Get dnf updates" step.
```bash ```bash
## Install Repos ## Install Repos
@ -45,6 +44,13 @@ dnf update -y
dnf install -y php php-{common,fpm,cli,json,mysqlnd,gd,mbstring,pdo,zip,bcmath,dom,opcache} dnf install -y php php-{common,fpm,cli,json,mysqlnd,gd,mbstring,pdo,zip,bcmath,dom,opcache}
``` ```
### If using Fedora Server 38 install PHP 8.1 and Dependencies from this section. If not, skip this section.
```bash
dnf install https://rpms.remirepo.net/fedora/remi-release-38.rpm
dnf module install php:remi-8.1
dnf install php81-php-{common,fpm,cli,json,mysqlnd,gd,mbstring,pdo,zip,bcmath,dom,opcache,process}
```
### Composer ### Composer
```bash ```bash
dnf install -y zip unzip tar # Required for Composer dnf install -y zip unzip tar # Required for Composer