Results 1 to 2 of 2

htpasswd problem

This is a discussion on htpasswd problem within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hello all, I wonder if you could help me out please I am having a slight problem. I have re-read ...

      
  1. #1
    Lurker
    Join Date
    Dec 2003
    Posts
    2
    Rep Power
    0


    Default htpasswd problem

    Hello all,

    I wonder if you could help me out please

    I am having a slight problem. I have re-read the documentation and carried out countless google searches with no success.

    I've installed oScommerce locally on my winXP pro PC. I have no problem with the installtion at all. mySQL database etc all works fine.

    However, I am having problems trying to passwod protect my admin directory.

    What i've done so far:
    I put the .htaccess file inside the admin directory I want to protect with the following:

    Code:
    AuthType Basic
    AuthUserFile /home/user/passwords/.htpasswd
    Authname Login
    require valid-user
    (Its not very clear if your doing this on your own web server locally.)

    The next step. I do in command promt:

    Code:
    htpasswd -b -c .htpasswd user pass to create Username: User and Password: Pass
    It creates the file, but where do I put this .htpasswd file?

    The main problem i'm having now is that when I try to access the Admin directory/page, IT DOES ask me for the username and password, but doesn't accept the username and password I type, so i'm thinking i've put the .htpasswd in the wrong place.. do you know where this file should go if your running Apache locally and not on a real web host?

    Also where should the .htaccess file be pointing to? I've tried many variations, with no luck.

    Thanks!

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default

    Let me guess - your running IIS!!!!

    Simple IIS does not use APACHE files.
    .htpasswd/.htacess etc is an APACHE standard. Use one of the ADMIN Levels w/password to protect your admin - or uninstall IIS and load APACHE.

    Good Luck
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. Email problem on webmail n aslo cupons problem
    By jikey in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 10-26-2006, 12:43 AM
  2. Trouble with .htaccess /.htpasswd
    By DancesWithData in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 04-11-2004, 01:21 PM
  3. Help with .htaccess and htpasswd please
    By ozstar in forum osCommerce 2.2 Installation Help
    Replies: 5
    Last Post: 03-12-2003, 01:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •