You are on page 1of 2

Apache Installation

Download and Install Apache 2.2


Download apache from the Apache 2.2 download page. Look for the section with the phrase "best available version" like "Apache HTTP Server (httpd) 2.2.x is the best available version". At the time of writing this tutorial Apache 2.2.15 is the official best available version. Click on the link for "Win32 Binary without crypto" and download the installer. After the download has finished, double click the downloaded Apache installer and follow the instructions to install Apache. On the "Server Information" dialog enter "localhost" for Network Domain and Server fields. Fill in your email id(or any bogus email id) in the Administrator's email field and click Next buttons on all the setup screens till the "Install" button appears. Finally click the Install button and wait patiently for the installer to install and configure Apache.

Testing the Apache Installation


Access the URL http://localhost/ and it should display the text "It works!". If this page is displayed then it means the Apache installation was successful. If you wish to change the port for the server to any other port like 8080, edit the file "C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf" and search for the line Listen 80

and change it to
Listen 8080

Steps to Stop/Start/Restart Apache 2.2

Anytime we make a change to apache conf file httpd.conf, we should restart the server. You can do this from the Start menu by clicking in the following sequence Start -> Programs -> Apache HTTP Server 2.2 -> Control Apache Server -> Stop/Start/Restart

Or from the command prompt by doing cd to the Apache bin directorycd C:\Program Files\Apache Software Foundation\Apache2.2\bin

and issuing one of the following commands httpd -k stop httpd -k start httpd -k restart

You might also like