i2-Services, Inc. Forums

Full Version: mod_auth_mysql Troubleshooting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I cannot get the mod_auth_mysql feature to work and instead get the htaccess popup. My test page is http://www.miningexcellence.ca/knowledge_academic.htm and a copy of the htaccess file is listed below (obviously I ommited the username and password in this example):

AuthType Basic
AuthName "Member Login"

AuthMySQLHost minerva.mirarco.org
AuthMySQLUser USERNAME
AuthMySQLPassword PASSWORD
AuthMySQLDB miningexcellence

AuthMySQLUserTable mm_users
AuthMySQLNameField username
AuthMySQLGroupTable mm_groups
AuthMySQLPasswordField password
AuthMySQLNoPasswd off
AuthMySQLPwEncryption none

AuthMYSQLEnable on

require valid-user
#require group 1
To avoid the .htaccess pop-up you need to use the mod_rewrite method of folder protection. This is covered in the manual:

http://support.i2-services.com/php_mm/

Basically you need to copy the 3 files from the /secure/rewrite_folder/ within the installation folder to the
folder you wish to protect.

You then need to adjust one path in rewrite.php to point to the login_require.php file.

If you need further assistance let us know.

Thanks,
i2
Reference URL's