Password protect directory with Apache: "couldn't check user. Check your authn provider!"

15,363

If it is not a permissions problem like Jim B suggested above (I also suspect that) you might not have loaded the authn module in Apache - mod_authn. I do not know how to do that in Windows but I am pretty sure if you google around you will find out how it's done.

Share:
15,363

Related videos on Youtube

Explosion Pills
Author by

Explosion Pills

Deep in the heart of the lush forest of Gainesville, Florida -- pride of the sunshine. Software developer / director for Mobiquity, the greatest mobile development company ever conceived.

Updated on September 18, 2022

Comments

  • Explosion Pills
    Explosion Pills over 1 year

    I am trying to password protect a web directory with apache. I have the site set up like this:

    D:/
       webapp/
          lib/
             .htpasswd
       document_root/
          admin/
             index.php
             .htaccess
    

    The .htaccess has:

    AuthName "Authorization Required" 
    AuthType Basic 
    AuthUserFile D:\webapp\lib\.htpasswd
    require valid-user
    

    And the .htpasswd has:

    user:passworddigest
    

    When I try to access localhost/index.php in the browser I get a 500 error. The apache error log has this:

    ["date"] [crit] [client "ip"] configuration error:  couldn't check user.  Check your authn provider!: /admin/
    

    I have googled but I can't figure out what this error means in the context of my server. Anyone know what's up? Also, it would solve my problem if someone had a simple method of using apache for authenticating a web directory on a windows server.

    • EightBitTony
      EightBitTony almost 13 years
      Can the apache server (and the user it's running under) read D:\webapp\lib\.htpasswd?
    • Explosion Pills
      Explosion Pills almost 13 years
      Maybe not .. how can I check that in windows?
    • lmat - Reinstate Monica
      lmat - Reinstate Monica almost 9 years
      Do any of these answers answer your question? (If so, please mark it as such ^_^)
  • Explosion Pills
    Explosion Pills almost 13 years
    Doesn't seem like a permissions problem, but I'll look into this. Thanks.
  • Explosion Pills
    Explosion Pills almost 13 years
    Thanks for the suggestion. I'll give it a try but I don't think this is the problem since I'm getting a 500 instead of just a bad password.
  • pkout
    pkout about 11 years
    Oh, I didn't notice that. Okay, then I would go to the httpd.conf file and try to find a line with this and uncomment it if it's commented out: LoadModule auth_digest_module modules/mod_auth_digest.so. Not sure as I run on Linux, but in theory this should work.