PHP + MySQL + Zend under IIS (full version)


There are many tutorials about PHP configuration under IIS on the Internet, but they are all rational things. I sorted out this tutorial from them
If you have any questions, you can also communicate with us. If there is anything wrong, please correct

The following tutorials are implemented under Windows 2000. For other systems, please refer to and modify

Operating system directory: C: \ WinNT
PHP default installation directory: C: \ PHP
PHP version: PHP 4.3.10 download address: (Windows binaries)
MySQL version: mysql-4.0.22-win download address:
Zend: Zend optimizer v2.5.5 download address: optimizerwindows-i386.exe

First, unzip the PHP package to the C: \ PHP directory
First, php.ini-dist is renamed php.ini
Then php.ini and php.exe are copied to the WinNT Directory
Php4ts.dll and php4isapi.dll (this is in SAPI directory) are copied to WinNT / system32 directory

In order to make your PHP support more modules, open php.ini in Notepad and search for extension? Dir. Change the value. / to C: \ PHP \ extensions

Then search; windows extensions will open the following extension modules, as long as the previous ones are removed… But some modules are not supported

Under IIS, create a PHP program test directory, such as D: \ web, in “Internet”
In the service manager, right click “default web site – > New – > Site”. The alias is web, and the actual path is D: \ web
Have read, run scripts, and browse permissions

Add PHP filter to ISAPI browser of IIS

PHP has two running environment modes
But it’s all from here


1. If you want to use ISAPI mode, under IIS — home directory configuration, modify the executable path: C: \ WinNT \ system32 \ php4isapi.dll



If you want to use CGI / fastcgi mode, first search for cgi.force_redirectin php.ini = remove the previous; sign and change the value to 0 (the default is 1)

Then, please modify the executable path under IIS – home directory configuration: C: \ WinNT \ php.exe



Do not forget to restart the WWW service of IIS after these preparations

Write a file info.php to test the PHP environment in the D: \ web directory
The contents are:

Then type http://your IP / info.php in the browser
You will see information about the PHP environment in which your system runs.

Zend installation:

All the way to next, and then to the next screen, please select IIS

After continuing to next, the directory where php.ini is selected is the default



Then next, during the installation process, it will automatically back up your php.ini file and restart the IIS service

MySQL installation:

MySQL is relatively simple to install. After installation, it will automatically start as a service of the system
I will not describe it here