Jump to content
  • Announcements

    • spinynorman

      Mandriva Official Documentation

      Official documentation for extant versions of Mandriva can be found at doc.mandriva.com.   Documentation for the latest release may take some time to appear there. You can install all the manuals from the main repository if you have Mandriva installed - files are prefixed mandriva-doc.
    • paul

      Forum software upgrade   10/29/17

      So you may have noticed the forum software has upgraded !!!
      A few things that have changed. We no longer have community blogs (was never really used) We no longer have a portal page.
      We can discuss this, and decide whether it is needed (It costs money) See this thread: Here
Sign in to follow this  

.htaccess prompts, but user not found?

Recommended Posts

Ok I got .htaccess almost working, it shows login box, but I cannot enter with right password. I have in /var/www/apache/htdocs/secure .htaccess file which points to /var/www/apache/.htpasswd & there I have .htpasswd with user & passwd made ok. The file has rw right for apache. Why I cannot access with right user / passwd? Error_log says:

Could not open password file & user X not found.


I have read some tutos,but they don.t talk about httpd.conf if there is something to add. Thanks to Paul for the last time help. Now more searches with google...

Share this post

Link to post
Share on other sites

strange :?:

I have 2 setups ...

1. .htacess and .htpasswd in the protected directory

1. .htaccess and .htpasswd in a seperate directory with require valid user setup in commonhttpd.conf

both work fine.


if it can't find the .htpasswd then put it in the same directory as .htacess, change the path in .htaccess then try it again.

if it can read it, then it IS a permissions thing and you're on the right track

Share this post

Link to post
Share on other sites

Ok, I found that if I have just :

AuthUserFile .htpasswd it points (apache searches) to my server root -> /var/www/apache, not to same dir where .htaccess file is. But auth. / .htpasswd works from there & I suppose that it is good enough place for it. I Did not found yet why it points there as default.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this