Detailed explanation of how to install php environment in iis
How to install php environment in iis: first download php and unzip php to a directory; then find and click "Add a new Web service extension"; then fill in "D:" in the window that appears. \PHP\php5isapi.dll"; finally restart IIS.
First step
Download php
Address: https://windows.php .net/downloads/releases/archives/
Just download the compressed package
Step 2
Unzip php to a directory, For example, D:\php
There are two php.ini in the php directory, one is php.ini-dist, which is more suitable for development; the other is php.ini-recommended, which is more suitable for configuring the operating environment, because This is slightly more secure.
So we copy php.ini-recommended to C:\WINDOWS, rename it to php.ini, and then open it with Notepad
1. Search for "extension_dir" and find extensino_dir=" ./"Change to extension_dir ="D:\php\ext"
2. Search for;extension=php_mysql.dll and remove the semicolon in front";"
3. Change D: \php\php5ts.dll is copied to C:\windows\system32.
Copy D:\php \libmysqls.dll to the C:\windows\system32 directory
Step 3
1. Control surface Version -> Management Tools -> Internet Service Manager -> Click to find Web
Service Extensions -> Click "Add a new Web Service Extension" in the right window -> The extension is
"PHP"——》Click "Add"——》In the window that appears, fill in "D:\PHP\php5isapi.dll" and confirm, then click Web Service Extension PHP and select Allow
2. Press
on the "Default Website Properties" window. Click the "Home Directory" tab and click the "Configuration" button. In the pop-up "View" window, click the "Add" button. In the "Add/Edit Application Extension Image" dialog box, enter "D:\PHP\php5isapi.dll" in the "Executable File" text box
Enter ". php" (note that there must be that point) and check the "Check whether the file exists" item
3. Click the ISAPI Filter" tab in the "Default Web Site Properties" window , click the "Add" button, enter "PHP"
in the "Filter Name" of the pop-up "Filter Properties" window, and browse to select "D:\PHP\sapi\" in the "Executable File" php5isapi.dll"
A: Restart IIS 6.0 to start loading PHP
B: Click the ISAPI Filter tab on the "Default Web Site Properties" window. If you see The PHP arrow is green and upward, which proves that PHP has been successfully loaded by IIS 6.0.
It needs to be explained here. If the red arrow points downward, it means that the loading is not successful. This is due to permissions. Just add "Run" permission to the user user in the php directory.
Another thing to note is that there is a short_open_tag in php.ini. The optional attributes are "On" and "Off". If you select on, it is not very strict and you can just use You can run it. If it is set to off, you must add php.
For a lot of related knowledge, please visit
PHP Chinese websiteThe above is the detailed content of Detailed explanation of how to install php environment in iis. For more information, please follow other related articles on the PHP Chinese website!

The article compares ACID and BASE database models, detailing their characteristics and appropriate use cases. ACID prioritizes data integrity and consistency, suitable for financial and e-commerce applications, while BASE focuses on availability and

The article discusses securing PHP file uploads to prevent vulnerabilities like code injection. It focuses on file type validation, secure storage, and error handling to enhance application security.

Article discusses best practices for PHP input validation to enhance security, focusing on techniques like using built-in functions, whitelist approach, and server-side validation.

The article discusses strategies for implementing API rate limiting in PHP, including algorithms like Token Bucket and Leaky Bucket, and using libraries like symfony/rate-limiter. It also covers monitoring, dynamically adjusting rate limits, and hand

The article discusses the benefits of using password_hash and password_verify in PHP for securing passwords. The main argument is that these functions enhance password protection through automatic salt generation, strong hashing algorithms, and secur

The article discusses OWASP Top 10 vulnerabilities in PHP and mitigation strategies. Key issues include injection, broken authentication, and XSS, with recommended tools for monitoring and securing PHP applications.

The article discusses strategies to prevent XSS attacks in PHP, focusing on input sanitization, output encoding, and using security-enhancing libraries and frameworks.

The article discusses the use of interfaces and abstract classes in PHP, focusing on when to use each. Interfaces define a contract without implementation, suitable for unrelated classes and multiple inheritance. Abstract classes provide common funct


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools