Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial

WBOY
Release: 2016-07-15 13:24:00
Original
1153 people have browsed it

1. Fault phenomenon

The operating system used by the author to build the environment is windows XP, IIS is the IIS 5 that comes with the system, and the PHP version is 5.2. According to the steps on the Internet, I installed the PHP program and configured the corresponding mapping parameters in IIS to establish a PHP environment, and generated a file named index.php for testing. In actual use, it was found that when accessing http://127.0.0.1/index.php and http://localhost/index.php through the browser on the server, error prompts appeared. The specific page showed "No permission to view the web page, based on The credentials provided, you do not have permission to view this directory or web page, HTTP error 401.3 - Access is denied by the resource ACL." (As shown in Figure 1)

Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial
Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial
图1
Figure 1

In order to further troubleshoot the problem, the author clicked "Browse" on the default website in IIS. After checking, the feedback message received is the same as above, which is also "HTTP error 401.3 - Access denied by resource ACL". (As shown in Figure 2)

Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial
图2
Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial
Figure 2

However, other page files on the same site can be browsed and viewed normally as long as they are not created in PHP language. , including HTML static pages and ASP dynamic web pages.

2. Modify the verification method to solve the problem

Since the information fed back by IIS is "HTTP error 401.3 - Access denied by resource ACL", the author also targeted the access authority to perform troubleshooting work.

Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial
图3
Step 1: Right-click on the default website in IIS and select "Properties" to view the relevant property information of the site. (As shown in Figure 3)

Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial
Figure 3

Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial

图4


Step 2: We find the "Directory Security" label in the default website properties that are opened , then click the "Edit" button next to "Anonymous access and authentication controls." (As shown in Figure 4)
Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial

Figure 4

1 http://www.bkjia.com/PHPjc/446817.htmlwww.bkjia.comtrue
http: //www.bkjia.com/PHPjc/446817.htmlTechArticle1. Fault phenomenon The operating system used by the author to build the environment is windows XP, and IIS is the IIS 5 that comes with the system. PHP version is 5.2. According to the steps on the Internet, I installed the PHP program and configured the IIS...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!