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
contributors: Steven Spencer, Ganna Zhyrnova, Joseph Brinkman
5
+
tested_with: 8.9, 9.3
6
6
tags:
7
7
- web
8
8
- php
@@ -11,11 +11,7 @@ tags:
11
11
12
12
# PHP and PHP-FPM
13
13
14
-
!!! warning "Written for Rocky Linux 8.x"
15
-
16
-
This procedure was initially published when Rocky Linux 8.x was the only version. This procedure must tested and rewritten for Rocky Linux 9.x.
17
-
18
-
**PHP** (**P**HP **H**ypertext **P**reprocessor) is a source scripting language, specially designed for web application development. In 2021, PHP represented a little less than 80% of the web pages generated in the world. PHP is open-source and is the core of the most famous CMS (WordPress, Drupal, Joomla!, Magento, ...).
14
+
**PHP** (**P**HP **H**ypertext **P**reprocessor) is a source scripting language, specially designed for web application development. In 2024, PHP represented a little less than 80% of the web pages generated in the world. PHP is open-source and is the core of the most famous CMS (WordPress, Drupal, Joomla!, Magento, ...).
19
15
20
16
**PHP-FPM** (**F**astCGI **P**rocess **M**anager) is integrated to PHP since its version 5.3.3. The FastCGI version of PHP brings additional functionalities.
21
17
@@ -43,47 +39,85 @@ Rocky Linux, like its upstream, offers many versions of the language. Some of th
43
39
44
40
To obtain a list of available versions, simply enter the following command:
45
41
46
-
```bash
47
-
$ sudo dnf module list php
48
-
49
-
Rocky Linux 8 - AppStream
50
-
Name Stream Profiles Summary
51
-
php 7.2 [d] common [d], devel, minimal PHP scripting language
52
-
php 7.3 common [d], devel, minimal PHP scripting language
53
-
php 7.4 common [d], devel, minimal PHP scripting language
54
-
php 8.0 common [d], devel, minimal PHP scripting language
Once the Remi repository is installed, enable it by running the following command.
63
+
64
+
```bash
65
+
sudo dnf config-manager --set-enabled remi
66
+
```
67
+
68
+
You can now activate a newer module (PHP 8.3) by entering the following command:
69
+
70
+
```bash
71
+
sudo dnf module enable php:8.3
72
+
```
73
+
74
+
=== "8.9"
75
+
76
+
Rocky Linux, like its upstream, offers many versions of the language. Some of them have reached the end of their life but are kept to continue hosting historical applications that are not yet compatible with new versions of PHP. Please refer to the [supported versions](https://www.php.net/supported-versions.php) page of the php.net website to choose a supported version.
77
+
78
+
To obtain a list of available versions, simply enter the following command:
79
+
80
+
```bash { .sh data-copy="sudo dnf module list php" }
81
+
$ sudo dnf module list php
82
+
83
+
Rocky Linux 8 - AppStream
84
+
Name Stream Profiles Summary
85
+
php 7.2 [d] common [d], devel, minimal PHP scripting language
86
+
php 7.3 common [d], devel, minimal PHP scripting language
87
+
php 7.4 common [d], devel, minimal PHP scripting language
88
+
php 8.0 common [d], devel, minimal PHP scripting language
You can check that the installed version corresponds to the expected one:
141
+
During installation you will be prompted to import GPG keys for the epel9 (Extra Packages for Enterprise Linux 9) and Remi repositories, enter y to import the keys:
0 commit comments