Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 3rd Party Repository (REMI) removed and changed to official AppStream Repository for PHP 7.4

...

  • the Apache web server 2.4,
  • the script language PHP 7.34,
  • the database management system MariaDB 10.4
  • the caching server memcached

...

At first the first packages are installed from the standard default repositories:

Code Block
languagebash
themeRDark
sudo dnf update
sudo dnf install httpd memcached unzip wget zip

For PHP the repository of Remi is recommended because it is very popular in the community and is currently maintained. If you do not want to compromise Red Hat's warranty, you can alternatively use EPEL (, the current Extra Packages for Enterprise Linux ). Here we show the way via Remi and install PHP 7.3(EPEL) is included:

Code Block
languagebash
themeRDark
sudo rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm

After the repository has been included, the possible versions are initialized and then the desired version can be activated (we use PHP 7.3 here):

Code Block
languagebash
themeRDark
sudo dnf module list php
sudo dnf module enableinstall php:remi-7.34 -y

The PHP packages are then installed:

Code Block
languagebash
themeRDark
sudo dnf install \
php php-bcmath php-cli php-common php-curl php-gd \ 
php-imagick php-json php-ldap php-mbstring php-memcached \ 
php-mysql php-pgsql php-soap php-xml php-zip

...