if previous sloution is complicated then there is step by step
solution.
Apache on Windows
Introduction
Apache is the most popular web server in the world. It is available on most platforms and can be downloaded from http://www.apache.org/dist/binaries/win32/
Installing Apache
Its easy to install Apache 1.3.12 if you are careful. Download the win32 binary installer. I installed my copy in D:\APACHE. You will need to modify APACHE\CONF\HTTPD.CONF with a text editor.
If you have not done so yet, choose the directory you want for the root directory, say D:\INETPUB\WWWROOT
Find the DocumentRoot setting. Change it to:
DocumentRoot "D:/inetpub/wwwroot"
Find the Directory setting. Change it to:
<Directory "D:/inetpub/wwwroot">
If you have PWS or IIS running on port 80, you will need to change Apache's port, like I did. I found the Port setting and changed it to 3000 with:
Port 3000
Installing PHP for Apache
I ran the EasyWindows PHP installer to install PHP in D:\INETPUB\SCRIPTS\PHP.
Then I added the following lines:
Path to PHP.EXE directory -- change ScriptAlias to suit your config.
ScriptAlias /php4/ "C:/inetpub/scripts/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
To set default documents to open in a directory, modify the DirectoryIndex entry. Eg.:
DirectoryIndex index.html index.php index.php3
Stop and restart Apache (Look for the Apache Group in Start menu, Programs).
Then you will be able to run .PHP and .PHP3 files.