Follow this guide step by step with ChatGPT, Claude or another AI

Updated: 30 November 2026 · Applies to: Plesk Obsidian 18.0 for Linux on CloudLinux with alt-php and PHP Selector; PHP checks tested with PHP 8.3 and 8.0 on Debian and AlmaLinux 9

The error The 'mysqli' extension was not found when you install an application in Plesk means the PHP version and handler that the domain uses does not load mysqli. On a CloudLinux server this is usually an alt-php version whose default module set has mysqli switched off. The fix is to enable mysqli (and mysqlnd, which it needs) for the exact PHP version the domain runs, then install the application again.

What the error looks like

According to Plesk, installing an app from the Plesk application catalogue stops with:

Error: Unable to install the app because its installation requirements are not met. Contact your hosting provider to resolve this problem.
Requirements
PHP extension The 'mysqli' extension was not found

Related messages with the same cause, according to Plesk, include a WordPress Toolkit install failing with Call to undefined function mysqli_connect() or Call to undefined function json_encode(). In plain PHP, a missing mysqli looks like this (from a test with PHP 8.3 built without it):

Fatal error: Uncaught Error: Class "mysqli" not found in Command line code:1

If the site is already installed and WordPress itself says Your PHP installation appears to be missing the MySQL extension which is required by WordPress, see Site shows error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress; the cause is often the same.

Why it happens on CloudLinux

According to CloudLinux, the extensions ticked in PHP Selector are loaded only for the alt-php version selected in PHP Selector. Any other alt-php version, for example one chosen for the domain in Plesk's PHP Settings, loads the default module set from /opt/alt/phpXX/etc/php.d/default.ini. So a domain can show mysqli ticked in one place and still run without it.

CloudLinux also ships two builds of the extension: mysqli and nd_mysqli (the one built on mysqlnd). According to CloudLinux, when no default list exists, installing or updating LVE Manager turns mysqli off and nd_mysqli on. Only one of the two should be loaded at a time.

Step 1: find the PHP version the domain really uses

  1. In Plesk, go to Websites & Domains, open the domain and click PHP Settings. Note the PHP version and handler (for example an alt-php 8.3 handler).
  2. If the domain also has a PHP Selector page, note the version set there.

Step 2: enable mysqli for that version (Plesk interface)

This needs the Plesk administrator login. According to Plesk:

  1. Go to Tools & Settings > PHP Settings.
  2. Click the PHP version you found in Step 1 (for a CloudLinux handler, the matching alt-php version).
  3. Enable mysqli, and mysqlnd on Linux. For the WordPress Toolkit errors above, Plesk also lists mbstring and json.
  4. Click OK, then install the application again.

The change applies to every website on that PHP version. If an extension is not in the list at all, it is not installed for that version and has to be installed first.

Step 2, alternative: edit default.ini over SSH

If you prefer the command line, Plesk's workaround is to edit the default module set of that alt-php version (replace 83 with your version). Back the file up first:

cp -a /opt/alt/php83/etc/php.d/default.ini /opt/alt/php83/etc/php.d/default.ini.bak
vi /opt/alt/php83/etc/php.d/default.ini

Make sure the nd_mysqli line is commented out and a mysqli line is active, and that mbstring and json are not commented out. The relevant lines should look like this (according to Plesk; on PHP 8 and later json is built into PHP and may not have a line):

extension=mbstring.so
extension=json.so
;extension=nd_mysqli.so
extension=mysqli.so

The old advice to add extension=mysqlnd.so and extension=mysqli.so to the end of a php.ini can fail: mysqli depends on mysqlnd, so mysqlnd has to be loaded first. Standard PHP packages handle this with file order; on AlmaLinux 9 they ship 20-mysqlnd.ini before 30-mysqli.ini.

Step 3: check it worked

Check the alt-php build directly (replace 83):

/opt/alt/php83/usr/bin/php-cgi -m | grep -i -E '^(mysqli|mysqlnd|nd_mysqli)$'

You should see mysqli (or nd_mysqli) together with mysqlnd. For a check from the website itself, put a file with this content in the document root, open it in the browser, then delete it:

<?php
var_dump(class_exists('mysqli'));

It prints bool(true) when the extension is loaded for the site. Then run the application install again.

Still failing?

  • Run php-cgi -m for the version and look for startup warnings such as "Unable to load dynamic library": that points to a module file that is missing for that alt-php build.
  • According to Plesk, a site can also fail to load MySQL extensions when not all packages that alt-php needs are installed. In that case update the alt-php packages (yum groupupdate alt-php, according to CloudLinux) or ask CloudLinux support.
  • If the domain does not need CloudLinux PHP at all, switching it to one of Plesk's own PHP versions in PHP Settings (where installed) is another way out.

Other PHP extensions on Plesk with CloudLinux work the same way: see How to Enable or Disable PHP Extensions in Plesk via CloudLinux Selector and How to Enable the GD Extension for PHP in Plesk. If you want an engineer to fix it on your server, our server management team can help.

Official documentation: CloudLinux PHP Selector and Plesk: PHP Extensions and Settings.

Related services

Plesk server management

installation, migrations and monthly plans with no lock-in.

cPanel, Plesk and LiteSpeed licences

for VPS and dedicated servers, with installation help on demand.

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Was this answer helpful?

Still stuck? Open a ticket