[PHP-WEBMASTER] [web-php] master: add instructions for fedora/redhat and multiple versions

[email protected] (Remi Collet via Shivam Mathur)
Newsgroups php.webmaster
Message-ID <[email protected]>
Author: Remi Collet (remicollet)
Committer: Shivam Mathur (shivammathur)
Date: 2025-12-19T19:22:05Z

Commit: https://github.com/php/web-php/commit/2fdb205aee5c16c709939dedd0223ed9726d1569
Raw diff: https://github.com/php/web-php/commit/2fdb205aee5c16c709939dedd0223ed9726d1569.diff

add instructions for fedora/redhat and multiple versions

Changed paths:
  M  include/download-instructions/linux-fedora-cli-community.php
  M  include/download-instructions/linux-redhat-cli-community.php


Diff:

diff --git a/include/download-instructions/linux-fedora-cli-community.php b/include/download-instructions/linux-fedora-cli-community.php
index 3f414122c5..3e406b988b 100644
--- a/include/download-instructions/linux-fedora-cli-community.php
+++ b/include/download-instructions/linux-fedora-cli-community.php
@@ -5,9 +5,15 @@
 # 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>
diff --git a/include/download-instructions/linux-redhat-cli-community.php b/include/download-instructions/linux-redhat-cli-community.php
index 7a647a04ef..024609acfb 100644
--- a/include/download-instructions/linux-redhat-cli-community.php
+++ b/include/download-instructions/linux-redhat-cli-community.php
@@ -7,9 +7,15 @@
 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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.