1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

add instructions for fedora/redhat and multiple versions

This commit is contained in:
Remi Collet
2025-12-19 15:19:39 +01:00
committed by Shivam Mathur
parent 8f19551545
commit 2fdb205aee
2 changed files with 14 additions and 2 deletions

View File

@@ -5,9 +5,15 @@ On the command line, run the following commands:
# Add the Remi's RPM repository.
sudo dnf install -y dnf-plugins-core
sudo dnf install -y https://rpms.remirepo.net/fedora/remi-release-$(rpm -E %fedora).rpm
<?php if ($multiversion) { ?>
# Install PHP (multiple versions).
sudo dnf install -y php<?= $versionNoDot; ?>
<?php } else { ?>
sudo dnf module reset php -y
sudo dnf module enable php:remi-<?= $version; ?> -y
# Install PHP.
# Install PHP (single/default version).
sudo dnf install -y php
<?php } ?>
</code></pre>

View File

@@ -7,9 +7,15 @@ sudo subscription-manager repos --enable codeready-builder-for-rhel-$(rpm -E %rh
sudo dnf install -y dnf-plugins-core
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm
sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-$(rpm -E %rhel).rpm
<?php if ($multiversion) { ?>
# Install PHP (multiple versions).
sudo dnf install -y php<?= $versionNoDot; ?>
<?php } else { ?>
sudo dnf module reset php -y
sudo dnf module enable php:remi-<?= $version; ?> -y
# Install PHP.
# Install PHP (single/default version).
sudo dnf install -y php
<?php } ?>
</code></pre>