Install WAMP (Windows-Apache-MySQL-PHP) with ZIP packages – (2)

The article is one of a series articles, for more information, please have a look at: Install WAMP (Windows-Apache-MySQL-PHP) with ZIP packages – (1)


Apache supplies only *.msi installer for Windows. But it introduces a way to extract MSI package for ZIP install ( We use httpd-2.2.21-win32-x86-openssl-0.9.8r.msi here.

1. Get awk

Get “Binaries, ZIP” file from

Unzip it, and then copy bin* to D:\Tools\temp\gawk for installation

2. Extract MSI package

Run the following command under cmd (command line).

msiexec /a httpd-2.2.21-win32-x86-openssl-0.9.8r.msi TARGETDIR=D:Toolstemp /qb

3. Update configuration files

copy all files in “D:\Tools\temp\program files\Apache Software FoundationApache2.2” to “D:\Tools\Apache”

Run the following commands under cmd. (NOTICE: “” and white space of the command should be exactly as here.)

mkdir D:\Tools\Apache\logs
mkdir D:\Tools\Apache\conf\extra
D:\Tools\gawk\awk -f D:\Tools\Apache\conf\original\instlal\winconf.awk 80 443 D:\Tools\Apache conf/original/

ARG1: domainname,
ARG2: servername,
ARG3: serveradmin,
ARG4: serverport, 80
ARG5: serversslport, 443
ARG6: serverroot, D:ToolsApache
ARG7: sourceroot, conf/original/

4. Install as service

cd D:\Tools\Apache
bin\httpd.exe -k install
bin\httpd.exe -k start

Or just start HTTPD with command:

cd D:\Tools\Apache

Now, open http://localhost/, you will see “It Works!”

5. Delete tempary files

Delete all files in D:\Tools\temp


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s