Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:09:36+00:00 2026-06-12T09:09:36+00:00

Having an issue where Apache is requesting authentication, and looking for an .htpasswd file,

  • 0

Having an issue where Apache is requesting authentication, and looking for an .htpasswd file, based on instructions from an .htaccess file that’s no longer in DocumentRoot. Background:

In my DocumentRoot, I’d previously copied an .htaccess and .htpasswd file from another machine (along with all of the other website files).

.htaccess contents:

AuthType Basic
AuthName "Password is required"
AuthUserFile /some/directory/that/was/on/the/other/server/not/this/one/.htpasswd
Require valid-user

Here’s the catch: I moved .htaccess and .htpasswd out of DocumentRoot and even renamed the files. There is no longer an .htaccess file in DocumentRoot at all.

But, when I try to access localhost from a browser, I am prompted to enter the login and password.

When I enter the login and password (from the old, not-in-DocumentRoot .hpasswd file), I get a 500 Internal Server error and the log shows:

[error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /some/directory/that/was/on/the/other/server/not/this/one/.htpasswd

This has been quite a puzzle, because there’s no longer a .htaccess or .htpasswd file anywhere in DocumentRoot !!

Have tried several apache restarts and also tried using a blank .htaccess file in the DocumentRoot. Even grepped the entire machine for references to AuthType Basic to see if I missed anything.

httpd.conf looks normal enough…I can post that if needed, but this question seems long enough as it is 🙂

Thanks for any assistance you can provide

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:09:36+00:00Added an answer on June 12, 2026 at 9:09 am

    Resolved. Not sure how I missed it, but there was an .htpasswd and .htaccess file one directory level above DocumentRoot. Removed those and it works fine. Not sure why this mattered since it was not in DocumentRoot but one level above it….but, that was definitely the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a strange issue with apache and ssh, that I can correlate
We are having this issue with our production servers (apache-tomcat-7.0.6), which is running a
I having issue that content assistant / intellisense is working in methods such as
Hi guys I am having issue I have this query: SELECT * FROM useraccount
I'm having an issue with a gem called private_pub that uses a faye gem
I am having an issue when uploading files to tomcat. It seems that tomcat
I am having an issue with three older Drupal 6 sites that I can't
Moving my website to a new webhost, I'm having an issue with apache /
I'm having an issue with a servlet that delivers multimedia data. I'm trying to
EDIT: After fixing a few issues, the bigger issue that I am having is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.