Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to connect to database server!


l0st.Drago

Recommended Posts

http://sdfta.com/admin/

 

Hello, :'( I cannot seem to find out why.. but I get this error! My files in configuration.php are correct.. why does it give me that error? my main site can be viewed by going to the index.php

 

Also-- I just installed a forum.. but why cant the store connect to the database??? I promise you.. my database, password, all work fine.. heck! you can create a new user account as well! What's up with the admin dir?

Link to comment
Share on other sites

http://sdfta.com/admin/

 

Hello, :'( I cannot seem to find out why.. but I get this error! My files in configuration.php are correct.. why does it give me that error? my main site can be viewed by going to the index.php

 

Also-- I just installed a forum.. but why cant the store connect to the database??? I promise you.. my database, password, all work fine.. heck! you can create a new user account as well! What's up with the admin dir?

as a guess, you overwrote or deleted files in the admin directory. Have a look at the directory vis your webhosts control panel filemanager.

Link to comment
Share on other sites

I would edit my other post but its telling me that i dont have permission.. how weird.

 

http://sdfta.com/admin/

 

I'm stupid and replaced my admin/includes/configuration.php file.. here it is..

 

<?php
/*
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.sdfta.com'); 
 define('HTTP_CATALOG_SERVER', '/');
 define('HTTPS_CATALOG_SERVER', '/');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', 'admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
 define('DB_SERVER', '*.ixwebhosting.com');
 define('DB_SERVER_USERNAME', '*');
 define('DB_SERVER_PASSWORD', '*');
 define('DB_DATABASE', '*');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

I configured that the best I can! but all I get is a blank page in admin..

 

 

The code below is my root config file below!

<?php
 define('HTTP_SERVER', 'http://www.sdfta.com');
 define('HTTPS_SERVER', 'http://www.sdfta.com');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'www.sdfta.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.sdfta.com');
 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', '/hsphere/local/home/christon56/sdfta.com/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
?>

Link to comment
Share on other sites

Also-- I just installed a forum.. but why cant the store connect to the database??? I promise you.. my database, password, all work fine.. heck! you can create a new user account as well! What's up with the admin dir?

 

That's exactly what happened! So how do I fix this? What files do I need to reconfigure?

Link to comment
Share on other sites

I would edit my other post but its telling me that i dont have permission.. how weird.

 

http://sdfta.com/admin/

 

I'm stupid and replaced my admin/includes/configuration.php file.. here it is..

 

<?php
/*
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.sdfta.com'); 
 define('HTTP_CATALOG_SERVER', '/');
 define('HTTPS_CATALOG_SERVER', '/');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', 'admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
 define('DB_SERVER', '*.ixwebhosting.com');
 define('DB_SERVER_USERNAME', '*');
 define('DB_SERVER_PASSWORD', '*');
 define('DB_DATABASE', '*');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

 

I configured that the best I can! but all I get is a blank page in admin..

The code below is my root config file below!

<?php
 define('HTTP_SERVER', 'http://www.sdfta.com');
 define('HTTPS_SERVER', 'http://www.sdfta.com');
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', 'www.sdfta.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.sdfta.com');
 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', '/hsphere/local/home/christon56/sdfta.com/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
?>

The forum gives you 15 minutes to edit a post.

You mean admin/includes/configure.php file don't you? To me, it does not look a problem with that file.

Link to comment
Share on other sites

That's exactly what happened! So how do I fix this? What files do I need to reconfigure?

Did you check to see if the admin files are there, if they are not there, restore from your back up files (you did back up your files didn't you).

Link to comment
Share on other sites

The forum gives you 15 minutes to edit a post.

You mean admin/includes/configure.php file don't you? To me, it does not look a problem with that file.

 

No, it was a mistake! AH! Though, it looks like all my admin files are there..

Link to comment
Share on other sites

No, it was a mistake! AH! Though, it looks like all my admin files are there..

Try relacing the admin/index.php with a fresh one.

Link to comment
Share on other sites

solved... for the most part. I uploaded an admin panel version.. BOO.

 

Now in my:

Configuration

BOX_CONFIGURATION_ADMINISTRATORS

My Store

Minimum Values

 

What is that BOX CONFIGURATION?

 

Why can't I date my site name? I mean, I can.. and it says: San Diego FTA but in the home page as if it were in the title tags.. says: oscommerce. how can I fix that?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...