- Plesk for Linux
- Plesk for Windows
- In the Domains > example.com > Applications > Manage Available Applications > <Application name> the error below occurs:
PLESK_WARN: Warning: The app was not configured: Non-zero exit status returned by script. Output stream: 'PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /usr/local/psa/var/apspackages/apscatalogJB3Muy.zip33615037-b2fc-e2/cache/scripts/db-util.php:66
- In Plesk for Windows the following occurred in Domains > example.com > Logs:
PLESK_ERROR: 500 PHP Fatal error:Uncaught Error:Call to undefined function mysql_connect()...
- In the
/var/log/httpd/error_log(for RHEL/CentOS) or in
/var/log/apache2/error.log(for Debian/Ubuntu) the following error occurs:
CONFIG_TEXT: Call to undefined function mysql_connect()
- Domain's PHP version is set to PHP 7.x in Domains > example.com > PHP Settings.
According to official PHP documentation mysql_connect() function has been completely removed in PHP 7.0. Thus it is not possible to enable function not supported by the vendor.
- Log into Plesk;
- Switch to the 5.x PHP version in Domains > example.com > PHP Settings: