Early releases of osCommerce didn’t have any protection for the Admin area – it was up to the Shop Owner to protect the Admin folder using .htaccess…easy enough in most hosts Control Panels. And easy enough to reset if you forgot the Password…
Jon sent in an interesting dilemma;
When I set up oscommerce the install asked me for a admin username and password, when I came back to the site a week later to do some work I cannot remember the Password that i used. Can you help?
RC (recent) releases of osCommerce include an inbuilt password – so the installation procedure asks for a Username and Password. If you forget your Password, it’s impossible to get it back, as it is entered into the MySQL Database encrypted.
BUT…it is easy to get around, so long as you have access to PHP My Admin (which is standard on just about every host that I know of!). Here’s what you need to do.
1. Open up PHP My Admin, and EMPTY the Administrators Table totally.
2. Go to your Shop Admin, and the login page will now ask you to set up a NEW admin username and password. It will show this text “No administrators exist in the database table. Please fill in the following information to create the first administrator. (A manual login is still required after this step)“. Obviously, you should follow this instruction!
3. You can now log in using your new username and password.
Easy as 123. Here’s a video I made of me doing exactly these steps;