• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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