How to Install PHP 8.0 on Fedora 39

To install PHP 8.0 on Fedora 39, follow these steps:

Step 1 :Start by updating your system using the following command:

Step 2 : Add Remi's repository to your system with the following command:

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

Step 4 : Enable the Remi repository for PHP:

Step 5 : Install PHP 8.0 core components, including php80, php80-php-fpm, and cli:

Step 6 : Install commonly used PHP extensions:

Explanation of extensions:

- mysqlnd: MySQL Native Driver

- curl: cURL extension for HTTP requests

- gd: GD Graphics Library for image processing

- mcrypt: Mcrypt extension for encryption

- json: JSON extension for handling JSON data

- pear: PHP Extension and Application Repository

- common: Common files for PHP

- xml: XML extension for parsing XML

- zip: Zip archive support

- devel: Development files for building PHP extensions

- xsl: XSL extension for XSLT transformations

- soap: SOAP extension for web services

- bcmath: BCMath extension for arbitrary precision mathematics

- mbstring: Multibyte String extension for handling multibyte encodings

- gettext: Gettext extension for internationalization

- imagick: Imagick extension for image manipulation

Step 7 : Check the installed PHP version to ensure the installation was successful:

Congratulations! You have successfully installed PHP 8.0 on Fedora 39 with commonly used extensions.