LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-06-2005, 04:02 AM   #1
b:z
Member
 
Registered: Mar 2005
Posts: 146

Rep: Reputation: 15
htaccess -- Apache can't find account exactly in htpasswd -- please help


Here is my .htaccess:

Quote:
#
AuthName "Protect Area."
AuthType Basic
AuthUserFile /etc/configure/apache/.htpasswd
AuthGroupFile /dev/null
<Limit GET POST>
require valid-user
</Limit>
#
Here is my .htpasswd

Quote:
admin:6gAcccxq8K/0s
I have put ".htaccess" file to my folder in webserver." /var/www/html/protect/"
When i have access to "http://www.abc.com/protect", a login form appear. Type user name and password which exist in ".htpassword", but nothing occur, exclude only login form, it still apear athough typing exactly more times.

And this is error log:

Quote:
[Fri May 06 15:47:34 2005] [error] [client 192.168.1.1] MySQL ERROR: Table 'test.user_info' doesn't exist: /protect/
[Fri May 06 15:47:34 2005] [error] [client 192.168.1.1] MySQL user admin not found: /protect
I really don't understand about "MySQL ERROR" ??? is .htaccess or .htpasswd relative to MySQL?
Please help me solve the problem. Thank you very much.
 
Old 05-06-2005, 08:49 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
And you did place your actual .htpasswd file in /etc/configure/apache/.htpasswd ?

And why do you have AuthGrpFile as /dev/null? Just leave it out if your not going to use it. And what command are you using to add the admin account to your .htpasswd file?
 
Old 05-06-2005, 11:29 PM   #3
b:z
Member
 
Registered: Mar 2005
Posts: 146

Original Poster
Rep: Reputation: 15
Quote:
And you did place your actual .htpasswd file in /etc/configure/apache/.htpasswd ?
Yes, that's right. i have been placed .htpasswd in "/etc/configure/apache/.htpasswd"

Quote:
And why do you have AuthGrpFile as /dev/null? Just leave it out if your not going to use it
The first time, i have left /dev/null, however when i have met that problem, i think i have got wrong configuration, so i have searched on Internet and seen some configuration of someone. And in thier configuration, they recommended use AuthGrpFile. But, Use or Not still got the same problem

Quote:
And what command are you using to add the admin account to your .htpasswd file?
#htpasswd -c /etc/configure/apache/.htpasswd admin
{then i type same password 2 times} --> succeed.

I have aslo stop MYSQL daemon running on my server, however nothing is better.
Please help me. Thank you very much.
 
Old 05-07-2005, 12:34 AM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Looks to me like you have another auth type setup somewhere else, probably in your http.conf file, that is conflicting with what you are trying to do here. Looks like someone has setup mod-auth-mysql which would explain the MySQL errors you're seeing.
 
Old 05-08-2005, 12:32 AM   #5
b:z
Member
 
Registered: Mar 2005
Posts: 146

Original Poster
Rep: Reputation: 15
Thanks for your reply,
Quote:
ks to me like you have another auth type setup somewhere else, probably in your http.conf file, that is conflicting with what you are trying to do here. Looks like someone has setup mod-auth-mysql which would explain the MySQL errors you're seeing.
Can you give me a detail about your mean? I really don't know where can fix it?

Thank you very much.
 
Old 05-09-2005, 12:46 AM   #6
b:z
Member
 
Registered: Mar 2005
Posts: 146

Original Poster
Rep: Reputation: 15
Any help, any suggestion ??? Please...
 
Old 05-16-2005, 05:46 AM   #7
hughesjr
LQ Newbie
 
Registered: Jul 2001
Location: Corpus Christi, TX
Distribution: CentOS-4
Posts: 8

Rep: Reputation: 0
It seems if you have mod_auth_mysql installed, it becomes the default AuthType

remove the rpm mod_auth_mysql ... or remark out all the open lines in:

/etc/httpd/conf.d/mod_auth_mysql
 
Old 05-16-2005, 05:47 AM   #8
b:z
Member
 
Registered: Mar 2005
Posts: 146

Original Poster
Rep: Reputation: 15
Quote:
It seems if you have mod_auth_mysql installed, it becomes the default AuthType

remove the rpm mod_auth_mysql ... or remark out all the open lines in:

/etc/httpd/conf.d/mod_auth_mysql
Well, thank for your help. I had already fixed it, however special thanks. You are right !
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess .htpasswd plisken Linux - General 5 05-21-2006 01:44 PM
apache .htaccess and htpasswd - can't lock directory jordanthompson Linux - Software 9 02-07-2005 11:12 PM
.htaccess .htpasswd issue Robin01 Linux - Newbie 4 12-24-2003 03:36 PM
Help with .htpasswd and .htaccess MikeeX Linux - General 3 03-25-2003 10:41 AM
Cannot see .htaccess and .htpasswd files John_Saunders Linux - Newbie 2 07-21-2002 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration