Home  >  Article  >  Backend Development  >  How to install php in iis6

How to install php in iis6

藏色散人
藏色散人Original
2020-11-26 10:17:312454browse

How to install php in iis6: First decompress the installation package and save it in "C:\php5"; then modify the "php.ini" configuration file; then open the "Internet Information Service Manager" and Find the php site inside; finally click "Add a new web service extension" and restart iis.

How to install php in iis6

The operating environment of this tutorial: Windows 7 system, PHP5.2 and iis6 version. This method is suitable for all brands of computers.

Recommended: "PHP Video Tutorial"

How to deploy php under iis6

This article starts with "PHP5. 2.0" as an example, the following are the specific steps:

1. First, we decompress the installation package and save it in "C:\php5";

2. Then put it in the root directory Copy "php.ini" to the system directory;

3. Change "php.ini-dist" to "php.ini", and then copy it to the system directory;

4. We open the text editor, open the "php.ini" file, start to search for "register_globals", and change off to on;

5. Then we continue to search for "extension_dir" and change the following value For example: C:\php5\ext;

6. Then search for "extension" and delete the ";" in front of the extension module, for example: mysql is changed to php_mysql.dll;

Note: If you need to use "mysqli", then add "extension=php_mysqli.dll".

 7. Then we open the "Internet Information Services (IIS) Manager" and find the php site; FTP

 8. After finding it, we right-click it and select "Properties". In the pop-up dialog box, we select "Home Directory" and then click "Configuration";

9. Then click "Add" in the "Mapping" dialog box, and then find the "php5isapi.dll" file. At the extension, we fill in ".php" and confirm;

10. We find the web service extension of iis. After finding it, click "Add a new web service extension" and add "php5isapi .dll" file with the extension "php", and then check "Set extension status to allow";

11. Finally, we open the start menu on the desktop, click "Run", and enter "iisreset", Then confirm;

 12. After completion, we restart iis. After restarting, we have completed the installation of PHP5 on iis6.

The above is the detailed content of How to install php in iis6. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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