To install PHP 8.3 on Fedora 39, follow these steps:
Step 1 : Ensure your system is up to date by running the following command:
Step 2 : Add Remi's repository to your system:
Step 3 :Verify available PHP modules by executing the following command:
Step 4 : Enable the PHP Remi repository using the following command:
Step 5 : Install PHP core components, including php83, php83-php-fpm, and cli:
Step 6 : Install commonly used PHP extensions. Modify the list based on your specific requirements:
Explanation of Extensions:
- mysqlnd
: MySQL Native Driver
- curl
: cURL extension for URL handling
- gd
: GD Graphics Library for image processing
- mcrypt
: Encryption and decryption functions
- json
: JSON data format handling
- pear
: PHP Extension and Application Repository
- common
: Common files for PHP
- xml
: XML parsing and manipulation
- zip
: ZIP archive support
- devel
: Development files for building PHP extensions
- xsl
: XSLT transformations support
- soap
: SOAP web services support
- bcmath
: Arbitrary precision mathematics
- mbstring
: Multibyte string support
- gettext
: Native language support
- imagick
: ImageMagick PHP extension for image processing
Step 7 : Check the installed PHP version to ensure everything is set up correctly:
Congratulations! You have successfully installed PHP 8.3 on Fedora 39 with commonly used extensions. Your system is now ready for PHP development.