Author: Shivam Mathur (shivammathur) Date: 2025-07-31T03:26:32+05:30 Commit: https://github.com/php/web-php/commit/a1562851aedf2b2b88113947eb104d859b465c5b Raw diff: https://github.com/php/web-php/commit/a1562851aedf2b2b88113947eb104d859b465c5b.diff
Add redhat instructions Changed paths: A include/download-instructions/linux-redhat-cli-community.php A include/download-instructions/linux-redhat-cli-default.php A include/download-instructions/linux-redhat-web-community.php A include/download-instructions/linux-redhat-web-default.php Diff: diff --git a/include/download-instructions/linux-redhat-cli-community.php b/include/download-instructions/linux-redhat-cli-community.php new file mode 100644 index 0000000000..7a647a04ef --- /dev/null +++ b/include/download-instructions/linux-redhat-cli-community.php @@ -0,0 +1,15 @@ +<p> +On the command line, run the following commands: +</p> +<pre><code class="language-bash line-numbers"> +# Add the Remi's RPM repository. +sudo subscription-manager repos --enable codeready-builder-for-rhel-$(rpm -E %rhel)-$(arch)-rpms +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 +sudo dnf module reset php -y +sudo dnf module enable php:remi-<?= $version; ?> -y + +# Install PHP. +sudo dnf install -y php +</code></pre> diff --git a/include/download-instructions/linux-redhat-cli-default.php b/include/download-instructions/linux-redhat-cli-default.php new file mode 100644 index 0000000000..61d64d3c50 --- /dev/null +++ b/include/download-instructions/linux-redhat-cli-default.php @@ -0,0 +1,7 @@ +<p> +On the command line, run the following commands: +</p> +<pre><code class="language-bash line-numbers"> +# Install PHP. +sudo dnf install -y php +</code></pre> diff --git a/include/download-instructions/linux-redhat-web-community.php b/include/download-instructions/linux-redhat-web-community.php new file mode 120000 index 0000000000..b41bc5d464 --- /dev/null +++ b/include/download-instructions/linux-redhat-web-community.php @@ -0,0 +1 @@ +linux-redhat-cli-community.php \ No newline at end of file diff --git a/include/download-instructions/linux-redhat-web-default.php b/include/download-instructions/linux-redhat-web-default.php new file mode 120000 index 0000000000..38d6e97f7b --- /dev/null +++ b/include/download-instructions/linux-redhat-web-default.php @@ -0,0 +1 @@ +linux-redhat-cli-default.php \ No newline at end of file