• 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.

application vault & mysql_connect

teckna

Basic Pleskian
We have plek 8.01 server and have just installed Plesk 8.6 on a new server.

Everything seems to be ok exept if you try and install something from the application vault that uses mysql.

Here is the Oscommerce error,
"Warning: Site application installation failed:
Fatal error: Call to undefined function: mysql_connect() in /var/www/vhosts/andycaisey.co.uk/vault_scripts/oscommerce/scripts/db-util.php on line 66"

others are all "line 66" whcih is:

function mysql_db_connect($dbaddress, $dblogin, $dbpassword, $dbname)
{
if(!mysql_connect($dbaddress, $dblogin, $dbpassword)) <---------------LINE66
{
print "Unable to connect to DB: " . mysql_error() . "\n";
exit(1);
}

if(!mysql_select_db($dbname))
{
print "Unable to select $dbname database: " . mysql_error() . "\n";
exit(1);
}
}

I need to buy new licences next week but cant if this fails for mysql application vaults.

Ubunt 6.06
php -v
PHP 5.1.2 (cli) (built: Jul 23 2008 17:01:53)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

php4 -v
PHP 4.4.2-1build1 (cli) (built: Apr 6 2006 09:44:32)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

php5 -v
PHP 5.1.2 (cli) (built: Jul 23 2008 17:01:53)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

any other info required?

thanks

Andy @ Teckna
 
Is this site running in php4 or php5? how is it running (apache module, fcgi, etc). What version of mysql do you use? have you tried using mysqli php extension instead of mysql?
 
hi .. strange how life hits you !! I had to rebuild the server due to another problem, 2nd time around this problem did not occur.

so, mrk it down to USER error !

thanks for asking

ANdy
 
Back
Top