Meniu

PHP 8.0 installation tutorial in Rocky Linux 8.x

PHP 8.0 is not yet present in the Rocky Linux AppStream, as it is still fairly new. However, you can install PHP from the repository (Remi), a free third-party repository that implements the latest updates to PHP 8.0.

To install EPEL:

sudo dnf install epel-release

Add the EPEL warehouse:

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

Update the list of deposits:

sudo dnf update

Available options:

sudo dnf module list php

Enable PHP 8.0:

sudo dnf module enable php: remi-8.0 -y

You can now install PHP 8.0 with the following command:

sudo dnf install php

You can install the most used PHP 8.0 extensions:

sudo dnf install php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imap php-imagick php-xmlrpc php-json php-readline php- memcached php-redis php-mbstring php-apcu php-xml

Check the version:

php -v

FlorinM

Utilizator Linux - Solus OS, pasionat de calatorii.
  • | 2708 articole

Nici un comentariu inca. Fii primul!
  • powered by Verysign