sliquid Posted May 10, 2007 Share Posted May 10, 2007 I made it through the installation. Got all the way to here: New Installation osCommerce Configuration The configuration was successful! And now i have the option to click Catalog or Administration Tool. before clicking either, I renamed my install folder. When I click either one, I get the "Unable to connect to database server!" error message I went back and fixed the name of the install folder, thinking that was the problem, but all that does is redirect me to the first install page again if I click Catalog Some background: I am on a shared server, running IIS, so I had to install the mod to allow register_globals to be off Also, I had to change a few lines on one of the install pages, because I am running IIS, not apache, so I needed to run PHP variables. There were problems with the install before I made those two changes, and after, the install seemed to go smoothly, all the way until the end, where it now tells me that it cant connect to the database that it already connected to twice before in the install process. Another thing to keep in mind: On page 4 of the install process, which it asks for the web server information, here is what I am entering: WWW Address: http://www.sliquid.com/catalog/ Webserver Root Directory: I tried an absolute and a relative path d:\inetpub\sliquid\wwwroot\catalog\ and /inetpub/sliquid/wwwroot/catalog/ Cookie Domain: .sliquid.com Cookie Path: /catalog/ anyone have any ideas? Link to comment Share on other sites More sharing options...
sliquid Posted May 10, 2007 Author Share Posted May 10, 2007 Oh, and also, I have tried turing persistant connections both off and on, but it makes no difference. and am I messing up my database by going through the install process multiple times? Link to comment Share on other sites More sharing options...
sliquid Posted May 10, 2007 Author Share Posted May 10, 2007 im not trying to bump, seeing as im still at the top of the list, but I have more info, and I cant figure out how to edit my previous posts. anyway. http://www.sliquid.com/phpmyadmin261 immediate error there, leads me to believe the problem is with my host, not os commerce. can anyone confirm? Link to comment Share on other sites More sharing options...
spax Posted May 10, 2007 Share Posted May 10, 2007 I agree, it looks like the db server is down. Create a ticket and get the facts. Link to comment Share on other sites More sharing options...
sliquid Posted May 14, 2007 Author Share Posted May 14, 2007 OK, I have spoken with my host, and we have come to the conclusion that the problem is definetly not them. Here's a little info: http://www.sliquid.com/dbtest.php you will see a good connection to the database from teh webserver there. Here is the code for that page: <html> <head> <title>MySQL database test</title> </head> <body> <!-- This file placed by Omega to test database access. --> <!-- this file can be safely removed. --> <?php if (!($db = mysql_connect("mysql.sliquid.com","sliquid","*********"))) { print ("Unable to connect to database host: $_db_host"); errorEmail(); exit; } if (!(mysql_select_db("sliquid_com",$db))) { print ("Unable to select database: $_db_name"); errorEmail(); exit; } print "<p>Database connection successful.<br /></p>"; ?> </body> </html> Also, here are screen shots of the installation: on the last page of the installation, I go back and rename the install folder, then I get this screen when i click either of the buttons: http://www.sliquid.com/catalog/ Link to comment Share on other sites More sharing options...
spax Posted May 14, 2007 Share Posted May 14, 2007 The HTTP Cookie Domain doesn't look right .sliquid.com It should be www.sliquid.com Post your configure files, minus any sensitive information. Edit those images as well, you are giving away too much info. Link to comment Share on other sites More sharing options...
sliquid Posted May 14, 2007 Author Share Posted May 14, 2007 The HTTP Cookie Domain doesn't look right .sliquid.com It should be www.sliquid.com Post your configure files, minus any sensitive information. Edit those images as well, you are giving away too much info. images are edited. the cookie domain is set like it says to if you click the help icon.... it says it should have 2 periods... and the examples is .your-domain-.com BUT I have tried it with www.my-domain.com and it made no difference. here are my configure files... they seem oddly blank. admin/includes configure file: <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers 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', '/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 our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> the other one(s) are the same way... so is the install process not changing the files, but not giving a warning? should I just plug in the info i know into the configure files and try it like that? Link to comment Share on other sites More sharing options...
spax Posted May 14, 2007 Share Posted May 14, 2007 should I just plug in the info i know into the configure files and try it like that? Yeah, I would. It does look a little bare. Link to comment Share on other sites More sharing options...
sliquid Posted May 14, 2007 Author Share Posted May 14, 2007 Yeah, I would. It does look a little bare. OK, so that was the problem. I edited both my configuration files, and its up and running! Thanks spax! Link to comment Share on other sites More sharing options...
spax Posted May 15, 2007 Share Posted May 15, 2007 No problem, glad you got it fixed. Well done! :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.