


What are the steps to set up IIS and install php7.2 under win10 system?
How to install php7.2 through iis under win10 system? In the following article, I will introduce to you the settings of iis under win10 system and how to install php7.2 through iis. Then, let’s take a look at the installation process of php7.2 in detail.
Turn on IIS and related functions:
Control Panel - Programs and Features - Turn Windows features on or off - Check Select Internet Information Service - World Wide Web Service - Performance and Functions - Check CGI
After successful opening, there will be IIS Manager
## under Computer Management - Services and Referenced Programs #Install and configure php:
Download php from the official website, choose between none thread (non-thread safety) and thread (thread safety) versions:There are two execution methods of PHP: ISAPI and FastCGI. The FastCGI execution method uses a single thread to perform operations, so there is no need to perform thread safety checks. Removing the protection of thread safety checks can improve execution efficiency. Therefore, if FastCGI (whether paired with IIS 6 or IIS 7) is used to execute PHP, It is recommended to download and execute non-thread safe PHP (PHP binary files have two packaging methods: msi and zip, please download the zip package). The thread safety check is prepared for ISAPI PHP. Because many PHP modules are not thread safe, you need to use Thread Safe PHP.
Since I am using FastCGI below, I downloaded the none thread version. 1. Download and extract it to D:/php 2. Back up php.ini-developer in the D:\php directory and change the file name to php.ini3. Edit php.ini: (remember to remove the first line comment) extension_dir = "D:\php\ext"
doc_root = "C:\inetpub\wwwroot"
After configuring here, enter php --help in dos and there should be the correct prompt
5 , IIS Manager Home Page - IIS - Handler Mapping - Add Module Mapping
Verify whether the installation is successful:
In c:\inetpub\ Create a new file hello.php under wwwroot. Input content:
<html> <head> <title>World</title> </head> <body> <?php echo "Hello world" ?> </body> </html>
After saving, open the browser and enter the address: http://localhost/hello.php. If Hello world is displayed on the web page, it means the installation is correct.
We can also view the source code of hello.php on the web page. If there is no php code in the source code, it means the installation is correct.
Possible problems:
The server reports a 505 error because of the lack of visual c 2011
The page displays No input file specified. Reason: If you use the ide that comes with it For the web server, you need to comment out the doc_root = "C:\inetpub\wwwroot" in php.ini
To set the php time zone, modify the date.timezone = "Asia/Shanghai" in php.ini
The wwwroot directory of IIS is on drive C, so you need to manually enable write permission
##Enable the php server system log, php. Set log_errors = On in ini, and set error_log = D:/php/error.log. The error_log("test") in the program will output test to the log file. You can also set display_errors = Off to turn off error echo. To avoid being attacked by hackers due to the paths, database connections, data tables and other information disclosed by these errors.
related suggestion:
How to install IIS, MySQ, nginx, php7.1.7 under Win10?
How to configure the Iis8 php environment under Windows Server 2012 (picture)
The above is the detailed content of What are the steps to set up IIS and install php7.2 under win10 system?. For more information, please follow other related articles on the PHP Chinese website!

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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics

Alipay PHP...

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.
