Re: PHP on IIS with basic authentication
- From: Heiko Richler <heiko-richler@xxxxxxxxxx>
- Date: Thu, 02 Aug 2007 17:04:46 +0200
Joff wrote:
I'm running PHP on IIS and need to set basic authentication on a
particular folder, e.g http://domain.com/private/
I've set the user on the server and assigned permissions to the
folder.
When requesting files within the folder, I get the login/password
prompt and entering the correct credentials gives me the file, except
for .php files.
The .php file is as basic as they come with just <?php echo "Hello
world"; ?> as the contents.
http://domain.com/private/test.txt works perfectly, however
http://domain.com/private/test.php denies access, giving only:
"Unauthorized
Access is denied due to invalid credentials."
I've tried giving the user full permissions; I've ensured that
Application Settings configuration within IIS Manager properties >
Home Directory, allows PHP files.
Any other suggestions?
What you describe sounds like windows integrated authentication not like
basic authentication. In this cases the user login on needs access to
the file on the server. If it is what you mean, the user may even need
the rights to execute that .php file as well as the right to execute php
itself.
Heiko
.
- Follow-Ups:
- Re: PHP on IIS with basic authentication
- From: Joff
- Re: PHP on IIS with basic authentication
- References:
- PHP on IIS with basic authentication
- From: Joff
- PHP on IIS with basic authentication
- Prev by Date: PHP on IIS with basic authentication
- Next by Date: Re: Getting multiple emails from a single mail()...
- Previous by thread: PHP on IIS with basic authentication
- Next by thread: Re: PHP on IIS with basic authentication
- Index(es):
Relevant Pages
|