I would like to know the answer too. Anyone here know what is the answer to that question. I'll do some research in Google and get back to you if I got an useful answer. You should email the people at iPage as they probably could give you an answer..
You say that you can reach the catalog fine but not the admin as you have renamed it and that the error is mysql connect..
Compare the database information at the bottom of the catalog/includes/configure.php file against the database information at the bottom of the admin/includes/configure.php file where admin is what you have now called your admin.
// define our database connection.
define('DB_SERVER', '******'); // eg, localhost - should not be empty for productive servers.
define('USE_PCONNECT', 'false'); // use persistent connections?.
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'.
This part of the configure.php files should be the same..
OK - mine looks like this:.
// define our database connection.
So I'm obviously missing something! - but I did enter this info at set up. I take it I can add this info straight into the configure.php file?.
Thanks Adam - tried changing admin name back at the time but no joy..
Check again both configure.php files for missing info and edit them 'by hand' if necessary! Remember, there is one config file in catalog/includes and another one in catalog/includes/admin, both have to be edited and both need to be filled out correctly!..
The configure.php in catalog/includes was not filled out correctly - but surely by putting this information in that file it woulf breach security?..
If you want to configure the shop and the admin area, you have to have those two files correctly filled up ... otherwise ... no shop! The choice is yours!!.
Of course, after editing the files, you will make them read-only again!!..
OK Antonios - keep your hair on! I've changed the directory name back to admin and also entered the correct details in both configure.php files. My point is the configure.php file outside the admin directory could easily be viewed by anyone and it contains sensitive database information - is this not a breach? Apologies as I am new to this. Anyway I've got to the admin section but I now cannot get any further when I click on 'cobfiguration' or any of the other options I get error 404...
Hi Chris sounds like you still have path issues in the configure.php files..
Do not worry about the security breach for now as when you have completed the changes required to the configure.php files and have everything working you will then be setting the permissions to the two configure.php fils to either chmod 644 or chmod 444, chmod 444 is read only state..
You can name your admin whatever you want to name it and place it where you want it as long as you reflect any name or path changes in the configure.php file for admin..
This post has been edited by.
: 07 May 2004, 15:05..
Thanls Steve - I'm reinstalling as I've begun to realise what's happened - the admin directory was inside the catalog directory when I unzip'd therefore when I uploaded as per instructions - there it stayed! I'm now uploading it outside the catalog directory and I'll go through the install again...
You may find it easier to just do a normal install then move and/or rename the admin altering the configure.php file to match the name and path..
You may also want to make the catalog in the root so as to be www.mydomain.com instead of www.mydomain.com/catalog/ this again can be done either at install or after having achieved a standard install, by means of manually ammending the configure.php files to reflect any changes...
Many thanks to all those who helped me with this. I now realise I posted in the wrong place! Thanks for being patient. I've now had the chance to have a good look round the iPage site and support forums. I have a much better understanding of how this all works now I've overcome my initial excitement at finding this fantastic resource! Once again thanks - you will no doubt see me popping up all over the place (hopefully the right place!)..
I'm completely new to OScommerce but it looks like a gret idea. I've got as far as installing it on a Unix server (1&1 internet). When the installation finished I had a choice of going to the catalog or admin. The admin button would not work (I presume) as I had renamed the admin directory - as suggested in the initial installation instructions. If I try typing in the URL to the admin section I get a "can't connect to local MySQL server through socket" message. I can reach the catalog fine but I'm assuming the bones of this are all reached through the admin section..
Can anyone point me in the direction of a beginners guide to this? I'm quite willing to do plenty of studying but I've not really used PHP before - will this hamper me greatly?.
Change your admin name back. Does it work? If so everything is installed just fine. If you change your admin folders name you have to change it in configure.php as well. Simplist way of doing it though is to password protect the Admin folder, you can do this through your one and one admin panel..