CentOS 4 snag with htaccess

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



>
>I'm hitting a snag with htaccess. Have created .htaccess and .htpasswd 
>files, set up apache directory options just like always... the exact same 
>setup works fine on CentOS 3, but I can't seem to get it to authenticate on 
>CentOS 4? Am I just being blind stupid (as in not seeing something 'exactly 
>the same') or is there something different I'm missing? I have selinux 
>running in warn mode I think it was, but not fully enabled.
>
>Best,
>John Hinton

Hello, John.

The problem might be that you have the mod_auth_mysql module enabled.
Please have a look at your '/var/log/httpd/ssl_error_log' file. If you find 
an error like the following:
'MySQL ERROR: Table 'test.user_info' doesn't exist'
Then it means that the mod_auth_mysql module is enabled, making Apache to 
look for the permissions in the MySQL database, and completely forgetting 
the .htaccess and .htpasswd files.

In this case, just remove the module like this:

yum remove mod_auth_mysql
or
rpm -e mod_auth_mysql

And then restart apache: 'service httpd restart'

Then it should work. This is a strange behaviour I know, but it doesn't 
bother anybody, appart of those using that function unfortunately...

Else, please report the error that you receive in your 
/var/log/httpd/ssl_error_log' file.

Regards,
Daniel





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux