How to Install PHP 8.3 on CentOS Stream 10

To install PHP 8.3 on CentOS Stream 10, follow these steps.

Step 1 : Run the following command to ensure your system is up-to-date:

Step 2 : You need to import the Remi repository to access the latest PHP packages. Use this command:

Step 3 : Check the available PHP modules with this command:

Step 4 : Enable the Remi repository to access PHP 8.3:

Step 5 : Install PHP 8.3 along with PHP-FPM and CLI by running the following command:

Step 6 : Install commonly used PHP extensions to enhance your setup. Here's the list of extensions you should install:

- mysqlnd: Native driver for MySQL support.

- curl: Allows PHP to interact with other servers via the CURL library.

- gd: Provides image processing capabilities.

- mcrypt: Used for encryption (may be deprecated in newer versions).

- json: Provides JSON support.

- pear: PHP Extension and Application Repository for adding PHP libraries.

- common: Contains common PHP files.

- xml: XML processing for PHP.

- zip: For working with ZIP archives.

- devel: Development files for PHP.

- xsl: For XSLT support.

- soap: SOAP support for web services.

- bcmath: Provides mathematical operations for arbitrary precision.

- mbstring: For handling multi-byte string encoding.

- gettext: For internationalization (translation support).

- imagick: Provides image processing via the ImageMagick library.

Step 7 : Check the installed PHP version to ensure everything is correctly installed:

Congratulations! You have successfully installed PHP 8.3 on CentOS Stream 10.