Invalid command 'Auth_MYSQLhost', perhaps misspelled or defined by a module not included in the server configuration
I'm following this guide for configuring .htaccess for MySQL login. I'm running Apache but I get the error above. This is the code:
AuthType Basic
AuthName "MySQL Member Page"
Auth_MYSQLhost localhost
Auth_MYSQLusername root
Auth_MYSQLpassword root
Auth_MYSQLdatabase login
Auth_MYSQLpwd_table administrators
Auth_MYSQLuid_field username
Auth_MYSQLpwd_field password
Auth_MYSQL_EncryptedPasswords off
require valid-user
It doesn't even try to connect to mysql but fail as soon as it reads Auth_MYSQLhost
. Why is this? I've already tried with AuthMYSQLhost
, authMYSQLhost
, auth_MYSQLhost
with no luck.