To install PHP 8.1 on Fedora 39, follow these steps:
Step 1 : Update
Step 2 : Add Remi's repo
Step 3 : Check available PHP modules
Step 4 : Enable PHP Remi Repository
Step 5 : Install PHP core
Step 6 : Install commonly used PHP extensions
Explanation of extensions:
- mysqlnd: MySQL Native Driver
- curl: Client URL Library
- gd: Graphics Draw
- mcrypt: Encryption library
- json: JavaScript Object Notation
- pear: PHP Extension and Application Repository
- common: Common functions
- xml: Extensible Markup Language
- zip: ZIP archive support
- devel: Development tools
- xsl: XSLT stylesheets
- soap: Simple Object Access Protocol
- bcmath: Arbitrary precision mathematics
- mbstring: Multibyte string functions
- gettext: Internationalization functions
- imagick: ImageMagick image processing
Step 7 : Verify PHP version
Congratulations! You have successfully installed PHP 8.1 on Fedora 39 with essential extensions.