sette Posted September 2, 2008 Posted September 2, 2008 Hello, could someone please kindly help me here? I was asked to modify an existing osCommerce application. Since I obviously don't want to fiddle around on the life system, I thought that I should download the web app on my local PC. To this, I have first installed XAMPP, as this has PHP and MySql included. Then I downloaded the app. Also I made a DB export on the web server, downloaded the resulting text file, and ran the generated SQL commands via mysql. Then I went to my local copy of the shop page via http://localhost/. Not surprisingly, I get MySql error - the application needs somehow to interact with the database, and it can't know userid, password and other administrative information, can it? Checking the osCommerce docs, I found that the database needs to be set up by pointing the web server to catalog/admin, but there was no http://localhost/catalog/admin (so I suspect the version of osCommerce running for this customer does not match the documentation I downloaded from the osCommerce site). Now I am stuck. How can I find out what osCommerce version is running there? And more importantly, how can I specify how osCommerce attaches to the database? I had expected there to be some kind of INI file specifying the database parameters, but I was not able to find one... Sette Sette
spax Posted September 2, 2008 Posted September 2, 2008 Not surprisingly, I get MySql error - the application needssomehow to interact with the database, and it can't know userid, password and other administrative information, can it? It will know if you tell it. Have you changed the 2 configure files so the app knows what to look for, where to look for it and what username/password to connect with?
sette Posted September 3, 2008 Author Posted September 3, 2008 Thank you for your reply! > Have you changed the 2 configure files so the app knows what to look for, > where to look for it and what username/password to connect with? I already suspected that there must be some configuration file in osCommerce somewhere, but I didn't find anything in the docs. In the documentation, the installation and setup instructions only describe how to set up via a browser (and as I said in my posting, this did not work). Could you please let me know where these configuration files are? Sette
spax Posted September 3, 2008 Posted September 3, 2008 The files are includes/configure.php and admin/includes/configure.php
sette Posted September 3, 2008 Author Posted September 3, 2008 The files are includes/configure.php and admin/includes/configure.php Thanks a lot, and I'm sorry if my question sounded a bit silly. It's the first time that I'm exposed to osCommerce and PHP ;-) I found the two files, and also the define sections relating to the database. Just out of curiosity: Do you happen to know why osCommerce has two configure.php files with identical content in different directories? Isn't such a redundancy a bit dangerous? Kind regards, Sette Sette
spax Posted September 3, 2008 Posted September 3, 2008 No worries, once you are familiar with osC, you will see the file structure is quite logical. As far as the configure files go, redundant I would probably agree with, although I'm not too sure about dangerous. MS3, when it is finally stable, does away with the admin configure file.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.