STEP 1: Verify that you have Microsoft windows installer:
Go to Start --> Run --> Type MSIEXEC
in the input box and hit enter to see if it's installed and what version. You need to have atleast version 2.0. You will see a message box that says "Incorrect command line parameters", along with the version number. You can install or upgrade with the following downloads if you need to:
Windows Installer 2.0 Redistributable for Windows 95, 98, and Me
Windows Installer 2.0 Redistributable for Windows NT 4.0 and 2000
STEP 2: Download and install the Apache Web Server:
http://nagoya.apache.org/dist/httpd/binaries/win32/ Download the latest stable release that ends with the .msi extension apache_2.0.43-win32-x86-no_ssl.msi. Make sure the version you download has no_ssl or no_src in it. Click on the installation program you just downloaded until you see:
Welcome to the installation Wizard for Apache HTTP Server 2.0.43
Continue through the set up, accept the license agreement, continue until you get to the screen that says:
Server Information
Please enter your servers information
Enter "localhost" without the quotes in the Network Domain input box.
Enter "localhost" without the quotes in the Server Name input box.
Enter the email address you'd like to use in the Administrator's Email input box.
Click Next --> Click Next
You'll have an option to change the installation to a different folder.
Click Change
Enter "C:\" without the quotes for the folder name.
Click OK --> Click Next --> Click Install --> Click Finish
Apache should now be installed in the C:\Apache2 directory.
STEP 3: Configuring Apache
Browser to the directory where the httpd.conf file is located most likely in: C:\Apache2\conf
Open up httpd.conf with your favirote text editor and:
A) Search For:
Options Indexes FollowSymLinks
Replace With:
Options Indexes FollowSymLinks MultiViews +Includes
B) Search For:
AllowOverride None
Replace With:
AllowOverride All
C) Search For:
DirectoryIndex index.html index.html.var
Replace With:
DirectoryIndex index.html index.html.var index.htm index.php index.shtml
D) Search For:
<Directory "C:/Apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Replace With:
<Directory "C:/Apache2/cgi-bin">
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
E) Search For:
AddType application/x-tar .tgz
AddType image/x-icon .ico
Replace With:
AddType application/x-tar .tgz
AddType image/x-icon .ico
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php /php/php.exe
F) Search For:
#AddHandler cgi-script .cgi
Replace With:
AddHandler cgi-script .cgi .pl
G) Search For:
#AddOutputFilter INCLUDES .shtml
Replace With:
AddOutputFilter INCLUDES .shtml
You could jump down to step 7A to test and verify apache is working now if you wish.
STEP 4: Download and install Perl:
http://activestate.com/Products/Download/Download.plex?id=ActivePerl ActivePerl 5.8.0 build 804 Windows MSI 11.5MB.
Click on the Perl installation file you downloaded and accept the license agreement and continue until you come to the screen that says:
Custom Setup
Select the way you want features to be installed
Click the browse button and change the location from:
C:\Perl\
to:
C:\usr\
Click Next --> Click Next --> Click Next --> Click Install --> Wait for it to install --> Click Finish
You could jump down to step 7B to test and verify Perl is working now.
STEP 5: Download and Install PHP
http://www.php.net/downloads.php
Scroll down until you see Windows Binaries. Download the latest stable zip version and not the installer version. Download the PHP 4.3.1 zip package.
Unzip it to your: C:\ directory
Browse to your: C:\ directory and look for the folder named php-4.3.1-Win32.
This maybe be different if you downloaded a different version.
Open up the php.ini-dist
file located in the php-4.3.1-Win32 folder and:
A) Search For:
doc_root =
Replace With:
doc_root = "C:\Apache2\htdocs"
B) Search For:
extension_dir = ./
Replace with:
extension_dir = "c:\php\extensions"
Save the php.ini-dist
file and rename it to: php.ini
Now move the php.ini
file into your: C:\Windows directory.
Find the php4ts.dll
file located in your: C:\php directory and move it to your: C:\Windows directory.
Rename the folder: C:\php-4.3.1-Win32 to: C:\php
You could jump down to step 7C to test and verify PHP is working.
STEP 6: Download and Install MySQL
Download MySQL-3.23 For Windows
Unzip the file you just downloaded to a temporary directory. If your using a program such as Winzip and it gives you the option to install now go ahead and do that and choose all the default settings. Else browse to the temporary directory where you unzipped the files and click on the setup.exe file to start the installation. Continue through the installation with all the default settings until your done.
You could jump down to step 7D to test and verify MySQL is working now.
STEP 7: Test Everything:
<html>
<body>
Apache Web Server Test
</body>
</html>
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello Perl\n";
<?php
phpinfo();
?>
cd c:\mysql\bin
#prompt> mysqladmin --help