note 39222 deleted from install.windows by cmb
| From: | cmb@php.net | Date: | Sun, 31 Mar 2019 08:46:19 +0000 |
| Subject: | note 39222 deleted from install.windows by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210475@lists.php.net to get a copy of this message | ||
Note Submitter: ungdi at hotmail dot com
----
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.