- Plesk for Linux
- The following error appears while trying to open the website:
PLESK_INFO: Call to undefined function:mysqli_connect(). Please install the MySQL Connector for PHP
- CloudLinux is used as an operating system.
- PHP Selector is installed.
- Different PHP versions can be found at Plesk > Subscriptions > example.com > PHP Settings and on domain's phpinfo page.
This is expected behavior for CloudLinux PHP Selector as PHP version, which is set in the PHP Selector, overrides PHP version set in Plesk.
As a result, any changes of PHP version at Plesk > Subscriptions > example.com > PHP Settings do not have an impact.
The issue might be solved in 3 ways:
Set Current PHP Version in Plesk > Subscriptions > example.com > PHP Selector to native.
Refer to the following article: How to enable native PHP version in PHP Selector
Set PHP-FPM as a handler in Plesk > Subscriptions > example.com > PHP Settings.
Note: This handler is not supported by PHP Selector and it will override the PHP Selector settings.
Enable necessary libraries in PHP Selector.