• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Call to undefined function: mysql_connect()

B

BuGoFf

Guest
Recently a user of mine wanted to install an application from the application vault.

Everything goes fine, untill plesk tries to configure the database.

Then i get this error:

Fatal error: Call to undefined function: mysql_connect() in /var/www/vhosts/testbram.be/vault_scripts/brim/scripts/db-util.php on line 66

Does somebody know what module i need to load in /usr/local/psa/admin/conf/php.ini

I tried to load the php5 mysql.so but this one give's me an error.

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20050922/mysql.so' - /usr/lib/php5/20050922/mysql.so: undefined symbol: OnUpdateLong
in Unknown on line 0

I'm using plesk on a debian sarge system.


I hope somebody could help me.
 
Have your Plesk tried to upgrade anything during the application installation?
 
Does somebody know what module i need to load in /usr/local/psa/admin/conf/php.ini

do not touch this file, it is used by compiled-in PHP of plesk panel only, otherwise you have a chance to down the panel itself

Fatal error: Call to undefined function: mysql_connect() in /var/www/vhosts/testbram.be/vault_scripts/brim/scripts/db-util.php on line 66

i think you should make sure that php-mysql RPM (or what operating system you run?) is installed and it's php version matches the rest of php packages.
 
COLUMNS=150 dpkg -l | grep php

...shows your php packages, is there everything ok ?
 
@danliker: all php(4-5)-mysql packages are installed. When i add an phpinfo into the control panel it tells me that mysql is compiled into php.

@dirty: everything is installed, i suppose plesk also uses mysql_connect to add databases? which does work...

@joda: i always update plesk to the recent version, and i never had a report it didnt work, so i dont know if it worked before.
 
Back
Top