Guest Posted August 4, 2005 Share Posted August 4, 2005 I'm stuck and running out of ideas: I setup the sample database in mysql per in the INSTALL docs. But I'm getting the following error when browsing to http://192.168.214.36/apache2-default/catalog/ Fatal error: Call to undefined function: mysql_connect() in /var/www/apache2-default/catalog/includes/functions/database.php on line 19 From other posts I take it my configure.php is not setup correctly or else the varilbes used in the function tep_db_connect from database.php would work. I verified I can connect to mysql with the username and passwd that I have setup along with the oscommerce database. Here are my configure.php files: define('HTTP_SERVER','http://localhost'); define('HTTPS_SERVER','https://localhost'); define('ENABLE_SSL','true'); define('HTTP_COOKIE_DOMAIN',''); define('HTTPS_COOKIE_DOMAIN',''); define('HTTP_COOKIE_PATH',''); define('HTTPS_COOKIE_PATH',''); define('DIR_WS_HTTP_CATALOG',''); define('DIR_WS_HTTPS_CATALOG',''); define('DIR_WS_IMAGES','images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES .'icons/'); define('DIR_WS_INCLUDES','includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES .'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES .'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC','pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG .'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG .'pub/'); // define our database connection define('DB_SERVER','localhost'); define('DB_SERVER_USERNAME','user'); define('DB_SERVER_PASSWORD','pass'); define('DB_DATABASE','oscommerce'); define('USE_PCONNECT','false'); define('STORE_SESSIONS',''); ?> This is my second time rebuilding any advise would be greatly appreciated. Tim Link to comment Share on other sites More sharing options...
♥Vger Posted August 4, 2005 Share Posted August 4, 2005 define('HTTP_SERVER','http://localhost'); define('HTTPS_SERVER',''); define('ENABLE_SSL','false'); define('HTTP_COOKIE_DOMAIN','localhost'); define('HTTPS_COOKIE_DOMAIN',''); define('HTTP_COOKIE_PATH','/catalog'); define('HTTPS_COOKIE_PATH',''); define('DIR_WS_HTTP_CATALOG','/catalog/'); define('DIR_WS_HTTPS_CATALOG',''); Vger Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.