The development environment of this article is Win XP. While the PHP runs with IIS, it is very slow. Run PHP with Apache, the speed will be faster for much. MiniApache (2.0.5.2) is a simplified Apache, it is just 308 K. As the introduction said, the functions that used frequently are not reduced.

After I installed and tested for many times, I've known well this installation of MiniApache. In order to avoid reinstalling Apache and PHP after reinstalling the system, please install them in the Disk D, for example, I install at D:\server. Create the development environmen of yourself first, the steps of installation are:

Extract the MiniApache at D:\server\apache.

Open the file D:\server\apache\setup.cmd, by a text tool, find that c:\www\bin\apache -k install, c:\www\bin\apache -k uninstall, and c:\www\bin\apache -k restart, delete all of the keyword "c:\www\", they will become bin\apache -k install, etc., this makes the DOS command become the relative path. Otherwise while run setup.cmd, it takes error, disable to install.

Configure the file D:\server\apache\conf\httpd.conf first, then install Apache. Such as change the port, create the virtual hosting, change the main directory of local site, all of them are written the correlative codes in the httpd.conf configuration file, in order to understand more easily for you, I omit this step. (Please click here to view detail, http://www.auciou.com/peace/79)httpd.conf file must be written the 3 lines as below:

Explanation: the second line is "Load Module", if without the third line, PHP cannot run, it just can display the HTML page.DirectoryIndex index.html this line is the default document of the directory, change to DirectoryIndex index.php index.html

In the file of httpd.conf, replace all of the keyword "c:/www" to "D:/server/apache", otherwise it cannot run. Because the MiniApache's default directory of installation is c:/www, I install at D:/server/apache.

Then run setup.cmd, choose 1, press Enter, if favoring, the installation of Apache will finish.

Install PHP 5. Extract php-5.2.8-Win32.zip at D:\server\php5, rename the D:\server\php5\php.ini-dist to php.ini, do not need to configure.

At this time, Apache and PHP have been installed completely. If PHP does not run, please open D:\server\apache\setup.cmd, choose 3, Enter, restart Apache.

Hereafer, after reinstall the system, just double click D:\server\apache\setup.cmd, choose 1, Enter, install, Apache and PHP will be installed for just one step.