Hello everybody,
I have the following problem: I would like to protect a directory using .htaccess, but the different usernames and passwords will not come from an .htpasswd but from a MySQL database. And I don't know why but it doesn't work very good because I always get a 500 error
My .htaccess looks like that:
AuthType Basic
AuthName "Member"
Auth_MYSQLhost localhost
Auth_MYSQLusername user
Auth_MYSQLpassword test
Auth_MYSQLdatabase test
Auth_MYSQLpwd_table member
Auth_MYSQLuid_field login
Auth_MYSQLpwd_field password
Auth_MYSQL_EncryptedPasswords off
require valid-user
For the MySQL side, there is no problem, I tried to connect and it worked fine. Using a .htpasswd file also worked good after I enabled the mod_rewrite thing. Is there maybe a problem with another module not being enabled or what I am doing wrong?
Thank you in advance,
Christian