Fedora Core 4 Authentication Weirdness

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
Hey Guys and Girls,

I've got a weird one. On a personal server I run, some people have .htaccess files for authentication of their sites/directories. All was fine on FC2 & FC3 and there were no problems at all.

Here's the weird thing... I did a fresh install of FC4 and then copied over the httpd.conf and all the sites. Everything works fine EXCEPT the .htaccess. If you go to a directory where you need to authenticate, it doesn't matter if you put in the right username and password, it simply won't let you in. I tried recreating the .htaccess and making my .htpassword and all goes normally, except that it just doesn't work!!!

So... I decided to go look at the error logs to see what I could learn, and found the following (or pretty close) on every single site that I had tried to access:

[Mon Jul 11 16:13:04 2005] [error] [client 209.122.102.90] MySQL ERROR: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[Mon Jul 11 16:13:04 2005] [error] [client 209.122.102.90] MySQL user oogn not found: /jonnyT


MySQL??? So, just for kicks I started the MySQL service, and then it changed to this:

[Mon Jul 11 16:27:05 2005] [error] [client 209.122.102.90] MySQL ERROR: Table 'test.user_info' doesn't exist: /oognroster
[Mon Jul 11 16:27:05 2005] [error] [client 209.122.102.90] MySQL user oogn not found: /jonnyT

Any ideas? Why would EVERY SINGLE SITE (even in people's home directories) be trying to authenticate through MySQL? Is there something new in FC4 that I don't know about, or is there something going on that's normal but I'm just ignorant of it?

HELP!

Joe
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Never seen that. You're using the same version of httpd? It's using the correct httpd.conf file?
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
I believe so, but I kept a copy of the original conf file from FC4... so maybe I'll just go through it line by line to be sure.

Thanks for the response... you not knowing makes me feel more sure that it is some bizzare problem or a misconfig between the two releases.

Joe
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
It's a doosey. Yeah, I'd make sure apache is grabbing the right httpd.conf, and double check the htpasswd files...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
See if you've got the Apache MySQL Auth module installed, if so remove it or at least disable it.
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
Originally posted by: Nothinman
See if you've got the Apache MySQL Auth module installed, if so remove it or at least disable it.


DING DING DING DING DING!!!!!

We have a winner!

I guess I checked it off when installing. Went back and removed it and all is well in life.

THANK YOU Nothingman!

So... when is it actually used? It would seem to me that once you install it on a server, that server is crippled and can ONLY use MySQL for authentication. What are the uses?

Joe
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
It would seem to me that once you install it on a server, that server is crippled and can ONLY use MySQL for authentication

I'm sure you can disable it, I just don't know how.

What are the uses?

Keeping your user's in a MySQL database?