You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: _posts/01-06-01-Linux-Setup.md
+14-2
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,12 @@ anchor: linux_setup
5
5
6
6
## Linux Setup {#linux_setup_title}
7
7
8
-
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.
8
+
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.
9
9
10
10
### Ubuntu-based distributions
11
11
12
+
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.
13
+
12
14
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:
13
15
14
16
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
25
27
26
28
This will ensure that your system can access and install the latest PHP packages available in the PPA.
27
29
28
-
####Debian-based distributions
30
+
### Debian-based distributions
29
31
30
32
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:
31
33
@@ -63,6 +65,16 @@ For Debian-based distributions, Ondřej Surý also provides a [bikeshed][bikeshe
63
65
64
66
With these steps, your system will be able to install the latest PHP packages from the bikeshed.
65
67
68
+
### RPM-based distributions
69
+
70
+
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.
71
+
72
+
There is a [configuration wizard][remi-wizard] available to configure your RPM-based distribution.
73
+
74
+
All that said, you can always use containers or compile the PHP source code from scratch.
0 commit comments