Ec (2); & nbsp; I have previously referred to many articles on installing php in iis on the Internet. ini and a bunch. dll, a single person said, a mess, many installation tutorial writers themselves do not know how to copy these things, such configuration is used. After a morning of suffering and experimentation, I finally figured out the path here. Now I want to tell you an installation tutorial with an explanation: the general tutorial is to see phpinfo () script ec (2); script
I have previously referred to many articles on installing php under iis on the Internet, all of which are copying php. ini and a bunch. dll, a single person said, a mess, many installation tutorial writers themselves do not know how to copy these things, such configuration is used. After a morning of suffering and experimentation, I finally figured out the following path:
The general tutorial ends with seeing phpinfo (), so I will tell you that it is very easy to run php to see it, the core is to add it in iis. php process.
Simplest installation process:
1. Download php5.2.5 first:
Decompress the package to a folder and change the file name to a simple one (for your convenience, not a required step). For example, if my file is E: php5.2.5
2. Open IIS, right-click "default website", and choose "properties"> "main directory"> "configuration"> "add ".
Executable File: E: php5.2.5php5isapi. dll
Extension:. php
OK
3. Create a new folder, such as E: php, right-click "properties" on the folder, select "shared folder" on the "web Sharing" tab, and enter php as the alias.
Create a. php under E: php. The content is
5. Open http: // localhost/php/a. php and you will see the phpinfo stuff!
Although the simplest installation method allows you to use the basic functions of php, but the extensions such as connecting to mysql have not yet been installed, I recommend the standard installation process, in case of any problems in the future, hit me with bricks.
Standard installation process:
1. Download php5.2.5 first:
Decompress the package to a folder and change the file name to a simple one (for your convenience, not a required step). For example, if my file is E: php5.2.5
2. Copy php. ini-dist in the php5.2.5 folder to C: WINDOWS and change it to php. ini.
And modify the following items:
Extension_dir = "./" is extension_dir = "E: php5.2.5ext". This is another php function library.
Remove the semicolon before extension = php_gd2.dll. This function is related to the support for images in the GD function library.
Remove the semicolon before extension = php_mysql.dll. This is the MYSQL function library.
PS: If you want to use cgi to parse the PHP file (the cgi method is explained below), remove the semicolon before cgi. force_redirect = 1 and Change 1 to 0.
Save
3. Copy php5ts. dll and libmysql. dll to C: WINDOWSsystem32.
4. Create a new folder, such as E: php, right-click "properties" on the folder, select "shared folder" on the "web Sharing" tab, and enter php as the alias.
Create a. php under E: php. The content is
6. Open http: // localhost/php/a. php and you will see the phpinfo stuff!