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

  • What is your reaction?
  • 2 Votes
  • powered by Verysign
  • 100% like gnulinux.ro
    Like
  • unmoved gnulinux.ro
    Unmoved
  • amused gnulinux.ro
    Amused
  • excited gnulinux.ro
    Excited
  • angry gnulinux.ro
    Angry
  • sad gnulinux.ro
    Sad
TENDINTA  |  The life cycle of Ubuntu 14.04 and 16.04 has been extended to ten years
FlorinM                   gnulinux.ro
FlorinM
Utilizator Linux - Solus OS, pasionat de calatorii.
2509 articole



  • Comment
  • powered by Verysign

Nici un comentariu inca. Fii primul!