From a59f8294cc150a1bc9469f5415614f7038149770 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Mon, 3 Jul 2023 21:19:10 +0200 Subject: [PATCH 1/2] Add Remi's RPM repo --- _posts/01-06-01-Linux-Setup.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/_posts/01-06-01-Linux-Setup.md b/_posts/01-06-01-Linux-Setup.md index aac6b735f..e67b8e8b7 100644 --- a/_posts/01-06-01-Linux-Setup.md +++ b/_posts/01-06-01-Linux-Setup.md @@ -5,10 +5,12 @@ anchor: linux_setup ## Linux Setup {#linux_setup_title} -Most GNU/Linux distributions come with PHP available from the official repositories, but those packages usually are a little behind the current stable version. There are multiple ways to get newer PHP versions on such distributions. On Ubuntu and Debian-based GNU/Linux distributions, for instance, the best alternatives for native packages are provided and maintened by [Ondřej Surý][Ondrej Sury Blog], through his Personal Package Archive (PPA) on Ubuntu and DPA/bikeshed on Debian. Find instructions for each of these below. All that said, you can always use containers, compile the PHP Source code, etc. +Most GNU/Linux distributions come with PHP available from the official repositories, but those packages usually are a little behind the current stable version. There are multiple ways to get newer PHP versions on such distributions. ### Ubuntu-based distributions +On Ubuntu and Debian-based GNU/Linux distributions, for instance, the best alternatives for native packages are provided and maintened by [Ondřej Surý][Ondrej Sury Blog], through his Personal Package Archive (PPA) on Ubuntu and DPA/bikeshed on Debian. Find instructions for each of these below. + For Ubuntu distributions, the [PPA by Ondřej Surý][Ondrej Sury PPA] provides supported PHP versions along with many PECL extensions. To add this PPA to your system, perform the following steps in your terminal: 1. First, add the PPA to your system's software sources using the command: @@ -25,7 +27,7 @@ For Ubuntu distributions, the [PPA by Ondřej Surý][Ondrej Sury PPA] provides s This will ensure that your system can access and install the latest PHP packages available in the PPA. -#### Debian-based distributions +### Debian-based distributions For Debian-based distributions, Ondřej Surý also provides a [bikeshed][bikeshed] (Debian equivalent of a PPA). To add the bikeshed to your system and update it, follow these steps: @@ -63,6 +65,16 @@ For Debian-based distributions, Ondřej Surý also provides a [bikeshed][bikeshe With these steps, your system will be able to install the latest PHP packages from the bikeshed. +### RPM-based distributions + +On RPM-based distributions (CentOS, Fedora, RHEL, etc.) you can use the [Remi's RPM repository][remi-repo] to install the latest PHP version or to have multiple PHP versions simultaneously available. + +There is a [configuration wizard][remi-wizard] available to configure your RPM-based distribution. + +All that said, you can always use containers or compile the PHP source code from scratch. + [Ondrej Sury Blog]: https://deb.sury.org/ [Ondrej Sury PPA]: https://launchpad.net/~ondrej/+archive/ubuntu/php [bikeshed]: https://packages.sury.org/php/ +[remi-repo]: https://rpms.remirepo.net/ +[remi-wizard]: https://rpms.remirepo.net/wizard/ From 22e265347c251c40819ad94604400b9888271555 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 4 Jul 2023 18:09:01 +0200 Subject: [PATCH 2/2] Update _posts/01-06-01-Linux-Setup.md Co-authored-by: Chris Brown --- _posts/01-06-01-Linux-Setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/01-06-01-Linux-Setup.md b/_posts/01-06-01-Linux-Setup.md index e67b8e8b7..2f19bd048 100644 --- a/_posts/01-06-01-Linux-Setup.md +++ b/_posts/01-06-01-Linux-Setup.md @@ -9,7 +9,7 @@ Most GNU/Linux distributions come with PHP available from the official repositor ### Ubuntu-based distributions -On Ubuntu and Debian-based GNU/Linux distributions, for instance, the best alternatives for native packages are provided and maintened by [Ondřej Surý][Ondrej Sury Blog], through his Personal Package Archive (PPA) on Ubuntu and DPA/bikeshed on Debian. Find instructions for each of these below. +On Ubuntu and Debian-based GNU/Linux distributions, for instance, the best alternatives for native packages are provided and maintained by [Ondřej Surý][Ondrej Sury Blog], through his Personal Package Archive (PPA) on Ubuntu and DPA/bikeshed on Debian. Find instructions for each of these below. For Ubuntu distributions, the [PPA by Ondřej Surý][Ondrej Sury PPA] provides supported PHP versions along with many PECL extensions. To add this PPA to your system, perform the following steps in your terminal: