Welcome to the Windows community forum, and interact with 3 million technical staff to enter the establishment of a PHP environment on the basis of IIS, there will always be one problem or another, many problems are more difficult to solve, I recently encountered an access error when setting up the PHP environment in IIS. All php page files cannot be displayed normally, while ASP and HTML static pages can
Welcome to the Windows community forum and interact with 3 million technical staff> on the IIS-based PHP environment, there will always be one or another problems, and many problems are more difficult to solve, I recently encountered an access error when setting up the PHP environment in IIS. All php page files cannot be displayed normally, while ASP and HTML static pages can
Welcome to the Windows community forum and interact with 3 million technicians>
On the basis of IIS, the establishment of the PHP environment will always have one problem or another, and many problems are relatively difficult to solve. I recently encountered an access error when establishing the PHP environment in IIS, all php page files cannot be displayed normally, while ASP and HTML static pages can be accessed smoothly. The following describes how to solve IIS + PHP environment faults with the permissions of IT168 readers.
I. Fault symptom:
The operating system used in the environment is windows XP, IIS is the built-in IIS 5, and PHP version is 5.2. According to the online steps, I installed the PHP program and configured the corresponding IIS ing parameters in IIS to establish the PHP environment, and generated a file named index. php for testing. In actual use, it is found that http: // 127.0.0.1/index is accessed on the server through a browser. php and http: // localhost/index. php prompts an error. The page shows "you do not have the permission to view the webpage. Based on the provided creden, you do not have the permission to view this directory or webpage, HTTP Error 401.3-the access is denied by the resource ACL ". (1)
For further troubleshooting, I can click "Browse" on the default website in IIS to view the results. The feedback received is the same as the previous one, it is also "HTTP Error 401.3-access is rejected by the resource ACL ". (2)
However, other page files on the same site can be viewed and viewed normally as long as they are not created in the PHP language, including HTML static pages and ASP Dynamic Webpage files.
2. Modify the verification method to solve the problem:
Since the message returned by IIS is "HTTP Error 401.3-the access is rejected by the resource ACL", I also troubleshoot the access permission.
Step 1: Right-click the default website in IIS and select "properties" to view the attributes of the site. (3)
Step 2: Find "Directory Security" in the default website attribute
[1] [2] [3] [4] [5]