Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a little htaccess question

Status
Not open for further replies.

netcomander

Programmer
Jul 20, 2001
68
DE
hi all,

I created a htpasswd file
than I created a .htaccess file

but I can't log into my script cause
apache says according to his error_log,
that he was unable to open the
htpasswd file mmmmmh

what permissions do I have to set on this file
and who should be the owner of this file?

I'd be glad gettin a hint ;)
 
Hi,

You would have to give it permissions such that the userid under which apache is running could read it. I find it easiest to change the ownership to that same user - on redhat that would be 'apache' :

# cd wherever...
# chown apache.apache htpasswd
# chmod +r htpasswd

Regards

 
If you have "AllowOverride None" in that directory's container, change it to "AllowOverride All". You can also use AuthConfig instead of All.
 
hey that works fine, but now apache tells me
no such user found, although this user is a
valid user on the mashine.

so I still can't log in.
 
did you make the valid password entry for that user in htpasswd? Then did you have the .htaccess file pointing to that htpasswd file? Rninja

smlogo.gif

 
hi Rninja, hi all,

yes my .htaccess file is pointing to
my htpasswd. When apache firstly complained
in the error_log, that he could not read
the file, I saw we were talking about the
same file.
(btw.I then made apache owner of the file)

and as far as this user is concerned,
he is valid on the mashine, and I tried
several passwds. I even tried to take
the user, who ownes the file I want to
restrict.

why does apache still says user not found???
 
i've had the same problem, for me turning off modules helped, i think it was mod_digest which did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top