- Plesk for Linux
Apache error after switching to PHP 7, the following error appears in
CONFIG_TEXT: Call to undefined function mysql_connect()
How to enable
mysql_connect() function for PHP 7.0?
According to official PHP documentation
mysql_connect() function is deprecated since PHP 7. Thus it is not possible to enable function not supported by the vendor.
Switch to an older PHP version in Plesk > Domains > example.com > PHP Settings.