To install PHP 8.5 on AlmaLinux 10, follow the steps below to enable the Remi repository, install PHP core packages, and add commonly used PHP extensions.
Step 1 : Update all system packages to the latest versions:

Step 2 : Install the Remi repository for Enterprise Linux 10:

Step 3 : List available PHP module streams:

Step 4 : Reset the default PHP module and enable PHP 8.5:

Step 5 : Install PHP 8.5 core components:

Step 6 : Install commonly used PHP extensions:

- mysqlnd – Native MySQL driver for PHP
- curl – Enables HTTP requests and API communication
- gd – Image creation and manipulation
- mcrypt – Encryption support (legacy or optional)
- json – JSON data encoding and decoding
- pear – PHP Extension and Application Repository
- common – Core PHP components and dependencies
- xml – XML parsing and processing
- zip – ZIP archive handling
- devel – PHP development headers
- xsl – XSLT transformations
- soap – SOAP protocol support
- bcmath – Arbitrary precision mathematics
- mbstring – Multibyte string processing
- gettext – Localization and translation support
- imagick – Advanced image processing using ImageMagick
Step 7 : Check the installed PHP version:

Congratulations! You have successfully installed PHP 8.5 on AlmaLinux 10 with essential extensions, and your system is now ready for PHP application development and deployment.