htaccess -- Apache can't find account exactly in htpasswd -- please help
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.