LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2005, 09:58 AM   #1
c0nsur
Member
 
Registered: Aug 2004
Posts: 34

Rep: Reputation: 15
Question weird .htaccess error ?


hey guys...
i cant pass through the authentification in my "protected" side of the site

/*********************************************************/
here is my .htaccess :
AuthUserFile '/path/to/my/.htpasswd'
AuthName "authentification"
AuthType Basic
<Limit GET>
require valid-user
</Limit>
/*********************************************************/
.htaccess Permission & owner = 644 owned by apache:
-rw-r--r-- 1 www-data www-data 2358 2005-03-28 07:13 .htpasswd
/*********************************************************/
apache -> in modules.conf :
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
/*********************************************************/
apache -> httpd.conf :
<Directory "/path/to/protected/section/of/mysite.com">
AllowOverride All
Options None
Order allow,deny
Allow from all
</Directory>
/*********************************************************/
In my Site.com-Error.log
user webmaster not found:
(13)Permission denied: Could not open password file: /Members/index.php
/*********************************************************/

thats pretty weird...cause im sure settings are OK to open and read my file...
anyway hope you'll get an idea

thanks again
Luke.
 
Old 03-31-2005, 10:10 AM   #2
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
Did you setup the user webmaster in your htpasswd file?
 
Old 03-31-2005, 10:13 AM   #3
c0nsur
Member
 
Registered: Aug 2004
Posts: 34

Original Poster
Rep: Reputation: 15
yeah,
actually i already had 40 members in it and no one works :/
 
Old 03-31-2005, 10:14 AM   #4
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
are you also authenticating via a PHP interface? The reason I ask is cause that doesn't look like an Apache log entry, and it is referencing a php webpage. Try creating a simple text file in the base of the password protected directory, then try and access that file rather than index.php, see if that works. If it does work, your problem is in reference to whatever php app you are trying to access.

Last edited by mikeyt_333; 03-31-2005 at 10:17 AM.
 
Old 04-02-2005, 09:36 AM   #5
c0nsur
Member
 
Registered: Aug 2004
Posts: 34

Original Poster
Rep: Reputation: 15
as u told me, i created a text file in my members directory...

here is the logs


[Sat Apr 2 05:36:30 2005] [error] [client x.x.x.x] (13)Permission denied: Could not open password file: /path/to/my/.htpasswd
[Sat Apr 2 05:36:30 2005] [error] [client x.x.x.x] user webmaster not found: /membres/test.txt

.htpasswd ::
webmaster:gZnIsEp06Guzw


i even tried to chmod 755 and its still owned by apache

have a clue?

thank you
Luke.
 
Old 04-02-2005, 09:44 AM   #6
c0nsur
Member
 
Registered: Aug 2004
Posts: 34

Original Poster
Rep: Reputation: 15
PROBLEM SOLVED

/**********************************************/

My problem is solved thank u helping me guys

Luke.

/**********************************************/
 
Old 04-04-2005, 09:52 AM   #7
mikeyt_333
Member
 
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
What was the fix? I'm sure others having a similar problem would be interested in knowing how you managed to solve it. Glad it was resolved ;-).
 
Old 04-05-2005, 11:09 AM   #8
c0nsur
Member
 
Registered: Aug 2004
Posts: 34

Original Poster
Rep: Reputation: 15
hey sorry i was pretty busy recently

had to reinstall my mail server --> qmailrocks

ok check out your config in httpd.conf
you must check out AllowOverride settings you can set it to All or AuthConfig

i did : AllowOverride AuthConfig

and then double check your .htaccess & .htpasswd
change owner to what ever your apache is named for me it was www-data
if it doenst work check out permission set it to 755 first and then adjust it
chmod 755 /path/to/my/.htaccess
chmod 755 /path/to/my/.htpasswd


also chmod 755 and chown to apache user the folder where IS your .htpasswd

and permission bug should be fixed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 -> Error 500 IlyaZ Linux - Networking 4 06-20-2005 03:43 PM
.htaccess -- ErrorDocument can't work with 401 error b:z Linux - Networking 1 05-26-2005 09:28 AM
htaccess error message charlex Linux - Newbie 1 06-16-2004 11:49 PM
user_dir htaccess error YakimaLAN Linux - Software 3 09-01-2003 11:12 PM
.htaccess error sfahey Linux - General 4 11-09-2002 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:29 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