Start with permissions to solve IIS + PHP environment faults

Source: Internet
Author: User
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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.