Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: .htpasswd file

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    .htpasswd file

    Hello to all. Thanks for taking the time to read this. I am having trouble getting Apache to read my .htpasswd file for a particular directory. I am using a script , amlite, which writes to the .htpasswd file just fine. I tried manually entering into the file with
    htpasswd -c .htpasswd name
    and then tried to access the protected directory and it still will not let me. The username and passwords are getting written to the file just fine. Apache's log says that the is no file or directory by that name "the name of the .htpasswd file. I do not know what to do. THank you for your help.

  2. #2
    Linux Newbie
    Join Date
    Dec 2004
    Barrie, Ontario
    Are you sure your .htaccess syntax pointing to the .htpasswd file are correct? Remember that the path to the .htapasswd file must be a full path, not relative.
    Blog - KB5UMQ - Linux User #272983
    3 Rules:
    1) "It doesn't work..." is simply not useful information.
    2) Don't cross post!
    3) If you are asking for help, start by telling us your distro/os and version.

Posting Permissions

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