To install PHP 8.3 on AlmaLinux 9, follow these steps:
Step 1 : Update Your System
Before installing PHP, update your system packages to ensure compatibility:

Step 2 : Import the PHP Remi Repository
Remi's repository provides the latest PHP versions for RHEL-based distributions, including AlmaLinux:

Step 3 : Check Available PHP Modules
List the available PHP versions to confirm that PHP 8.3 is available:

Step 4 : Enable PHP 8.3 Remi Repository
Enable the PHP 8.3 module from the Remi repository:

Step 5 : Install PHP Core Packages
Install PHP 8.3 along with the necessary core components:

Step 6 : Install Common PHP Extensions
For a complete PHP setup, install commonly used extensions:

- php-mysqlnd: MySQL native driver for database connections.
- php-curl: Enables PHP to make HTTP requests.
- php-gd: Image processing library.
- php-mcrypt: Provides encryption functions.
- php-json: Supports JSON encoding and decoding.
- php-pear: Provides PHP package management.
- php-common: Includes commonly used PHP functions.
- php-xml: Handles XML files.
- php-zip: Enables ZIP file handling.
- php-devel: Development tools for PHP.
- php-xsl: Enables XSLT transformations.
- php-soap: Enables SOAP-based web services.
- php-bcmath: Provides arbitrary precision mathematics.
- php-mbstring: Supports multibyte character encoding.
- php-gettext: Enables language translation support.
- php-imagick: Adds ImageMagick support for image processing.
Step 7 : Verify Installation
Check if PHP 8.3 is installed successfully:

Congratulations! You have successfully installed PHP 8.3 on AlmaLinux 9.