philcassell Posted October 10, 2005 Share Posted October 10, 2005 Hello All, I have setup this fabulous osCommerce site anf when I go to the admin section It doesnt prompt me for a username and password. There was nothing in the configuration setup in regards to the password or username. I have searched through the forums and have not found much in the way related to Linux servers. I am a reseller so I am not running a home web server. Is there some configuration that I have missed that allows me set a username and password to the admin panel. Any help would be cool. This is a great web app and would like to use it to the fullest. Peace Phil Link to comment Share on other sites More sharing options...
AlanR Posted October 10, 2005 Share Posted October 10, 2005 http://www.oscommerce.info/kb/224 Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management) Link to comment Share on other sites More sharing options...
philcassell Posted October 10, 2005 Author Share Posted October 10, 2005 http://www.oscommerce.info/kb/224 I have scoured the forums for information in regards to protecting the admin panel ie asking for a username and password. I get the feeling that it is frowned upon when this question is asked as there really hasn't been a concrete answer. I installed osCommerce externally with a purchased template and I don't get prompted for a username and password. I installed osCommerce using Fantastico and I get prompted for a username and password. The only difference was that when installing it from Fantastico was that it asked me to protect my admin file. I go to the admin section and voila I have to put my username and password in. After looking at that the .htaccess file I see that new one has appeared with this information AuthType Basic AuthName "OS Commerce Administration" AuthUserFile "/home/mydomainname/.htpasswds/test/admin/passwd" require valid-user So my understanding is that in my test installation from fantastico that it looks for the "AuthName" and then asks for a username and password. I copied the .htaccess file to my externally installed application (same location) and it took me directly to the control panel with asking for a username and password) I am wondering where the .htaccess gets the AuthName "OS Commerce Administration" from? Where is that name coming from? Link to comment Share on other sites More sharing options...
philcassell Posted October 10, 2005 Author Share Posted October 10, 2005 I have scoured the forums for information in regards to protecting the admin panel ie asking for a username and password. I get the feeling that it is frowned upon when this question is asked as there really hasn't been a concrete answer. I installed osCommerce externally with a purchased template and I don't get prompted for a username and password. I installed osCommerce using Fantastico and I get prompted for a username and password. The only difference was that when installing it from Fantastico was that it asked me to protect my admin file. I go to the admin section and voila I have to put my username and password in. After looking at that the .htaccess file I see that new one has appeared with this information AuthType Basic AuthName "OS Commerce Administration" AuthUserFile "/home/mydomainname/.htpasswds/test/admin/passwd" require valid-user So my understanding is that in my test installation from fantastico that it looks for the "AuthName" and then asks for a username and password. I copied the .htaccess file to my externally installed application (same location) and it took me directly to the control panel with asking for a username and password) I am wondering where the .htaccess gets the AuthName "OS Commerce Administration" from? Where is that name coming from? Well I hope that this helps. This is from my Technical Support AuthName is just a caption which will be showed on the password box. You can secure the folder from control panel: 1. Login to Cpanel 2. Enter To Password Protect Directories 3. Select the folder you wish to protect by clicking on its name or open a folder by clicking on its icon. 4. Enable 'Directory requires a password to access via the web' 5. Put something Protected Resource Name (That's Auth Name) 6. Click Save 7. Add user/password in the respective boxes. I did this and there were no issues. I think that this should be added to the Knowledge Base as it is most helpful Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.