Home Backend Development PHP Tutorial Start with permissions to solve IIS+PHP environment failures (1)_PHP tutorial

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

Jul 15, 2016 pm 01:24 PM
wind one Obtain build operating system Fault yes Permissions environment use solve

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1668
14
PHP Tutorial
1273
29
C# Tutorial
1256
24
How to run sublime after writing the code How to run sublime after writing the code Apr 16, 2025 am 08:51 AM

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

What is the main purpose of Linux? What is the main purpose of Linux? Apr 16, 2025 am 12:19 AM

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.

How to run programs in terminal vscode How to run programs in terminal vscode Apr 15, 2025 pm 06:42 PM

In VS Code, you can run the program in the terminal through the following steps: Prepare the code and open the integrated terminal to ensure that the code directory is consistent with the terminal working directory. Select the run command according to the programming language (such as Python's python your_file_name.py) to check whether it runs successfully and resolve errors. Use the debugger to improve debugging efficiency.

Is the vscode extension malicious? Is the vscode extension malicious? Apr 15, 2025 pm 07:57 PM

VS Code extensions pose malicious risks, such as hiding malicious code, exploiting vulnerabilities, and masturbating as legitimate extensions. Methods to identify malicious extensions include: checking publishers, reading comments, checking code, and installing with caution. Security measures also include: security awareness, good habits, regular updates and antivirus software.

git software installation git software installation Apr 17, 2025 am 11:57 AM

Installing Git software includes the following steps: Download the installation package and run the installation package to verify the installation configuration Git installation Git Bash (Windows only)

vscode cannot install extension vscode cannot install extension Apr 15, 2025 pm 07:18 PM

The reasons for the installation of VS Code extensions may be: network instability, insufficient permissions, system compatibility issues, VS Code version is too old, antivirus software or firewall interference. By checking network connections, permissions, log files, updating VS Code, disabling security software, and restarting VS Code or computers, you can gradually troubleshoot and resolve issues.

How to set important Git configuration global properties How to set important Git configuration global properties Apr 17, 2025 pm 12:21 PM

There are many ways to customize a development environment, but the global Git configuration file is one that is most likely to be used for custom settings such as usernames, emails, preferred text editors, and remote branches. Here are the key things you need to know about global Git configuration files.

Can vscode compare two files Can vscode compare two files Apr 15, 2025 pm 08:15 PM

Yes, VS Code supports file comparison, providing multiple methods, including using context menus, shortcut keys, and support for advanced operations such as comparing different branches or remote files.

See all articles