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

Apache supplies only *.msi installer for Windows. But it introduces a way to extract MSI package for ZIP install (http://httpd.apache.org/docs/2.2/platform/windows.html). We use httpd-2.2.21-win32-x86-openssl-0.9.8r.msi here.

1. Get awk

http://gnuwin32.sourceforge.net/packages/gawk.htm

Get “Binaries, ZIP” file from http://gnuwin32.sourceforge.net/downlinks/gawk-bin-zip.php

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 example.com www.example.com you@example.com 80 443 D:\Tools\Apache conf/original/

ARG1: domainname, example.com
ARG2: servername, http://www.example.com
ARG3: serveradmin, you@example.com
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
bin\httpd.exe

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

5. Delete tempary files

Delete all files in D:\Tools\temp

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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