Install the PHP scripting language
To develop and deploy server-side web applications, install PHP on your system.
Before you begin
- You have root privileges.
About this task
In RHEL 10, the PHP scripting language is available as the php RPM package in the following versions:
- PHP 8.3
- PHP 8.4 available since RHEL 10.2
Procedure
Install the PHP packages:
- For PHP 8.3, enter:
# dnf install php - For PHP 8.4, enter:
# dnf install php8.4