Start with permissions to solve IIS + PHP environment faults (1) _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Start with permissions to solve IIS + PHP environment faults (1 ). I. fault phenomenon I set up the environment using Windows XP, IIS is the built-in IIS5, and PHP version is 5.2. Install the PHP program and configure 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)

498) this. width = 498; 'onmousewheel = 'javascript: return big (this) 'src = "/files/uploadimg/20070119/1649060 .jpg" border = 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)

498) this. width = 498; 'onmousewheel = 'javascript: return big (this) 'src = "/files/uploadimg/20070119/1649061 .jpg" border = 1>

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.

II. 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)

498) this. width = 498; 'onmousewheel = 'javascript: return big (this) 'src = "/files/uploadimg/20070119/1649062 .jpg" border = 1>

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)

498) this. width = 498; 'onmousewheel = 'javascript: return big (this) 'src = "/files/uploadimg/20070119/1649063 .jpg" border = 1>


1

The operating system used by the author to build the environment is windows XP, IIS is the built-in IIS 5, and PHP version is 5.2. Install the PHP program and configure...

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.