• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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