Error opening phpMyAdmin «Due to packaging complexities PHP 8.2.0+ is required»
Symptoms
The following error is displayed when switching to phpMyAdmin:
Due to packaging complexities PHP 8.2.0+ is required (Ubuntu Launchpad bug #2016016 and phpMyAdmin issue #17503).Causes
- The «Apache module» handler mode is used by an alternative version of PHP.
- PHP-FPM is not installed.
Solution
Important!
Before applying this solution, be sure to create backups of your site configuration files:
- If the version is changed to the «Apache module», all sites running on it will change their PHP version.
- If Nginx is installed, your site configuration files will be recreated by a template.
There are two possible solutions:
- Set the «Apache module» handler mode to only support the native version of PHP in the PHP section.
- Install the Nginx web server and the PHP-FPM module in the Software Configuration - Web Server section.