Toon posts:

Not authorized melding bij opvragen php

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik ben bezig met het installeren van een phpserver op een win2003 systeem.
er wordt gebruik gemaakt van IIS 6 en PHP 5.0.4
wanneer ik een .php bestand opvraag (bijv. info.php) in mijn browser krij ik de volgende melding

You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied.
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe you should be able to view this directory or page.
Click the Refresh button to try again with different credentials.
HTTP Error 403 - Forbidden: Access is denied.
Internet Information Services (IIS)

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled About Security, Authentication, and About Custom Error Messages.

Dit lijkt mij een rechtenkwestie iemand een idee waar ik dit kan aanpassen??
Al vast bedankt.

  • sjoerdb2
  • Registratie: Juli 2001
  • Laatst online: 09-05-2025
bij googelen op iis php 403 kom ik al heel wat tegen, even vluchtig doorgelezen en het lijkt er op dat je een user moet aanmaken, zie bijvoorbeeld http://www.bultinck.be/archives/000033.html
Under a Windows 2003 and IIS 6.x installation of PHP, it is interesting to note that by default in most cases, the "DefaultAppPool" for the "Default Web Site" is running under the security context of "Network Service" which maybe too restrictive. This results in a 403: Forbidden error every time you try to access a PHP page.

You have several options to remedy the problem:
an obvious one is to make it run as the "Local System", but that may be too much power for some administrators' tastes.

The other option is at the IIS Manager,
go to the computer's "Application Pools" folder,
and go to the properties dialog box of the "DefaultAppPool",
and then to the "Identity" tab, and select the "Configurable" identity of "IWAM_[COMPUTER_NAME]" as the security context. This will make the application pool run the way it did in the previous versions.

This solved the repeated problems of the 403 errors. However, do not forget to give permission to "IUSR_[COMPUTER_NAME]" and "IWAM_[COMPUTER_NAME]" appropriate directory permissions for your web directories as stated above.
(bovenstaande komt van reacties van http://nl2.php.net/install.windows)

[ Voor 76% gewijzigd door sjoerdb2 op 22-09-2005 09:36 ]


  • frickY
  • Registratie: Juli 2001
  • Laatst online: 21-08 23:34
Klinkt alsof de gebruiker waaronder IIS draait geen leesrechten heeft op je webroot.
Anders kan het ook nog zijn, als je de CGI-versie van PHP gebruikt, dat de bestanden geen 'uitvoer'-rechten hebben.

Verwijderd

Topicstarter
ow thnx ik ga er even naar kijken.

  • elevator
  • Registratie: December 2001
  • Niet online

elevator

Officieel moto fan :)

Vragen over IIS zijn beter op z'n plek in Software Algemeen - ik ga je topic dan ook nog eventjes verplaatsen :)

Windows Operating Systems >> Software Algemeen