php installation notes are:
1. Place php5ts.dll, libmysql.dll, and libmcrypt.dll in the php5 root directory. The three files are placed in the system32 directory of the system.
2. Rename the php.ini-dist file in the directory to php.ini, and cut the php.ini file and put it in the c:\windows directory (if it is a 2000 system, put it in c :\winnt directory)
3. Open the c:\windows\php.ini file:
找到:extension_dir = "./" 更改为:extension_dir = "d:\php5\ext 找到: ;extension=php_mbstring.dll ;extension=php_gd2.dll ;extension=php_mysql.dll ;extension=php_mcrypt.dll 去掉注释!
4. Configure IIS to support PHP
1) In the "Control Find and open "Internet Information Services (IIS) Manager" in "Panel" - "Administrative Tools"
2) Find "Website" - "Default Website", right-click "Default Website", and then click "Properties"
3) Click "ISAPI Filter", then click the "Add" button. In the pop-up "Filter Properties" dialog box, fill in the filter name "php" and the executable file "d:\php5\php5isapi. dll", (the path of php5isapi.dll can be selected by pressing the "Browse" button), then click "OK" to exit
4) Click the "Home Directory" tab, then click "Browse" and point the website directory to d :\wwwroot (or other website directory)
5) Click "Configuration" under the home directory label, the "Application Configuration" dialog box will appear, then click the "Add" button, and in the pop-up "Add/Edit Application Extension" Name Mapping" dialog box,
Enter d:\php5\php5iaspi.dll in the executable file location, enter php in the extension, and then confirm
6) Click the "Document" tab, and then click "Add " button, in the pop-up "Add Default Document" dialog box, fill in: index.php, and then confirm
7) Click "Web Service Extension", then click "Add a new Web Service Extension", and then In the pop-up "New Web Service Extension" dialog box, enter php for "Extension name", then click "Add", enter d:\php5\php5isapi.dll under "File Path", confirm, and then click "Set extension status to allow" "Tick the hook before final confirmation to exit.
8) In order to verify whether the environment we just configured can run php normally, first we create a new text and enter the following content
<?php phpinfo(); ?>
Save it as phpinfo.php and put it in the root directory of the website (My here is d:\wwwroot), enter http://localhost/phpinfo.php in the IE browser, and the php information appears after pressing Enter, which proves that the system already supports PHP
Recommended tutorial: "php tutorial》
The above is the detailed content of What are the precautions for php installation?. 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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

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

WebStorm Mac version
Useful JavaScript development tools

Dreamweaver Mac version
Visual web development tools

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