mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-09 15:36:36 +02:00
Add Remi's RPM repo
This commit is contained in:
@@ -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/
|
||||
|
Reference in New Issue
Block a user