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

From: Date: Fri, 19 Dec 2025 19:22:07 +0000
Subject: [web-php] master: add instructions for fedora/redhat and multiple versions
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33481@lists.php.net to get a copy of this message
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>

« previous php.webmaster (#33481) next »