Loading...
How to install PHP 8 on Alma Linux & Rocky Linux - Knowledgebase

How to install PHP 8 on Alma Linux & Rocky Linux Print

  • linux, php, 8, alma, rocky
  • 5

A quick rundown

Prerequsities

Step 1 — Enable REMI Repository

$ sudo dnf install epel-release
$ sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm

Step 2 — Enable REMI PHP 8 Repository

$ sudo dnf module list php
$ sudo dnf module list reset php
$ sudo dnf module enable php:remi-8.0

Step 3 — Install PHP 8

$ sudo dnf install php php-cli php-curl php-mysqlnd php-gd php-opcache php-zip php-intl

Was this answer helpful?

« Back