Guest Posted December 4, 2003 Posted December 4, 2003 My oscommerce/admin page doesn't ask for a login, what can I do?
phpuser76039 Posted December 4, 2003 Posted December 4, 2003 You can create a .htaccess file in admin directory.
Guest Posted December 5, 2003 Posted December 5, 2003 I am new to oscommerce so how would I create this file?
maddhatter Posted December 5, 2003 Posted December 5, 2003 Here is a simple way to protect your admin page... http://phpuserlogin.oxyscripts.com/download.php follow this and download the newest version...i also comes with a user guide for those that our not well versed in PHP. O'ya it is also free...
Guest Posted December 8, 2003 Posted December 8, 2003 I feel like a total idiot, were can I find my phpuserlogin.php file. The manual wasn't helpful for me, I am still below the language.
Guest Posted December 8, 2003 Posted December 8, 2003 Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I can protect this oscommerce/admin from my control and it then asks for a password but comes up the the error above.
Guest Posted December 8, 2003 Posted December 8, 2003 I found the .htaccess file you were talking about and this is what it says .htaccess File Type: ASCII text -------------------------------------------------------------------------------- # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* order deny,allow deny from all allow from all order deny,allow deny from all AuthName www.chris.us AuthUserFile /home/chris/public_html/_vti_pvt/service.pwd AuthGroupFile /home/chris/public_html/_vti_pvt/service.grp
OceanRanch Posted December 8, 2003 Posted December 8, 2003 Hi Sarah, To use apache .htaccess facilities there are 2 basic files that you create. 1. .htaccess - this file does following stuff. - defines which files/directories need to be password protected - defines which users can access those files (i.e. valid users in your passwd file) - defines the full path of the .htpasswd file that contains the user name you want 2. .htpasswd - the file that contains valid user names and passwords you want The following post has very good details on how to set these files up. http://www.oscommerce.com/forums/index.php?sho...=0entry263327 The following URL is the Apache doc on .htaccess for late night reading :) http://httpd.apache.org/docs/howto/htaccess.html HTH
hazs Posted December 8, 2003 Posted December 8, 2003 When what do you do when you have a windows server :wacko:
OceanRanch Posted December 8, 2003 Posted December 8, 2003 If you mean IIS for a webserver, then just use the standard IIS user based authentication under IIS. If you mean Apache running on a windows server then everything is the same except that of course your /'s become \'s etc. .htaccess works very nicely under windows. HTH
Guest Posted December 8, 2003 Posted December 8, 2003 I used this contribution: http://www.oscommerce.com/community/contributions,1 Took 2 minutes to install and works a treat.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.