IIS + PHP environment troubleshooting (1/3)

Source: Internet
Author: User

 

In fact, this article is a step-by-step solution to the php tutorial in the iis environment, "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 -- access is denied by the resource acl. In contrast, the first and second types are used to locate the problem, which is not desirable in practice because it is inconvenient for users to browse the page and may cause security risks; the third method is the real solution. However, the three methods described in this article are to allow readers to broaden their thinking and understand the corresponding configuration information in iis from an instance, which can solve major problems in critical cases.

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 -- access is denied by the resource acl ". (1)

Figure 1 click to view the large image


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)

Figure 2 click to view the large image


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 tutorial Dynamic Webpage files.

2. Modify the verification method to solve the problem:

Since the message returned by iis is "http Error 401.3 -- 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)

Figure 3 click to view the large image


Step 2: Find the "Directory Security" tab in the default website attribute that is opened, and click "edit" next to "Anonymous Access and authentication control. (4)

Figure 4 click to view the large image


Step 3: I see in the "authentication method" that by default iis is through the establishment of the iuser_china-914340f04 and the corresponding password to access iis page information, this account is also automatically created by iis. (5)

Figure 5 Click to view the large image


1 2 3

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.