Results 1 to 2 of 2

Trouble with .htaccess /.htpasswd

This is a discussion on Trouble with .htaccess /.htpasswd within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I have successfully installed osCommerce 2.2 on my site, but am still having some problems: I am unable to successfully ...

      
  1. #1
    Lurker
    Join Date
    Apr 2004
    Posts
    1
    Rep Power
    0


    Default Trouble with .htaccess /.htpasswd

    I have successfully installed osCommerce 2.2 on my site, but am still having some problems:

    I am unable to successfully password protect the admin directory. I have set up the .htaccess and .htpasswd files as indicated, but I am still not sure if I have configured, placed, or referenced the .htpasswd file properly.

    First, I created the encrypted password at http://www.kelv.net/programming/htaccess/ and saved it to a text file.

    Next I added the following lines to the .htaccess file in the directory in quesiton:

    AuthType Basic
    AuthName "Locked Area"
    AuthUserFile /test/.htpasswd (where /test is the root directory of a subnet at my domain).
    require valid-user

    Next I copied the text file with the encrypted password to the "/test" directory.


    I also have another unrelated problem: I keep getting the following message no matter what I do: Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

    I am pulling my hair out of my head trying to figure this one out.
    Any help or direction anyone can provide would be much appreciated. My host is GoDaddy if that makes a difference one way or another.

    Regards,
    Dave Herman
    Clarkstown Technology, Inc.

  2. #2
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    10


    Default

    first off if your host offers password protected directories, just do that instead. If not, I'm no help with this one!

    Here's some info on sessions http://wiki.oscommerce.com/docsSessions

Similar Threads

  1. .htaccess question
    By cupido in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 06-25-2004, 05:09 PM
  2. can someone pleaseee help? .htaccess trouble
    By cloudie in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 02-27-2004, 01:06 AM
  3. htpasswd problem
    By MonkeyBoy in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 12-23-2003, 06:24 AM
  4. htaccess
    By nisse in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-12-2003, 03:35 PM
  5. Help with .htaccess and htpasswd please
    By ozstar in forum osCommerce 2.2 Installation Help
    Replies: 5
    Last Post: 03-12-2003, 12: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
  •