mysqli extension was not found in Plesk

In this article, we will solve mysqli extension was not found error in Plesk. The article is applicable only for CloudLinux-running servers with CageFS enabled and Alt-PHP handler being used!

Symptoms

CloudLinux is running on the server.
Alt-PHP and CageFS are installed and are in use.
Installation or update of any APS application hangs or fails:

Fixed in:

Plesk Onyx 17.8 17 April 2018

Solution

Please consider updating your server:

How to install Plesk updates

Temporary solution:

Until the issue is fixed, use the following workaround:

1. Log into Plesk.
2. Define absent PHP modules in Tools & Settings > PHP Settings > alt-php version > php.ini by adding following lines at the end of the file:

extension=mysqli.so
extension=mysqlnd.so
extension=json.so
extension=phar.so

3. Connect to the server via SSH.
4. Update PHP settings for all domains:

# plesk bin php_settings -u

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat