How to: Install Apache Server on Windows

by Neli S Gautham Raj on November 9, 2010

About Apache :

The Apache HTTP Server is a powerful and flexible HTTP/1.1 compliant web server.  Originally designed as a replacement for the NCSA HTTP Server, it has grown to be the most popular web server on the Internet.  As a project of the Apache Software Foundation, the developers aim to collaboratively develop and maintain a robust, commercial-grade, standards-based server with freely available source code.

To Know more about Apache refer

http://www.apache.org/

http://en.wikipedia.org/wiki/Apache_HTTP_Server

How to download :

Go to following link :

http://www.apache.org/dyn/closer.cgi/httpd/binaries/win32/

Here choose Mirror .

Select appropriate file to download .

I have chosen httpd-2.2.17-win32-x86-no_ssl.msi  .

Installation:


Note : Enter any email address in Administrator’s email Address  .

How to test :

Open your browser and Enter either  http://127.0.0.1/ or http://localhost/.

If it shows It works , then Apache server is running with no problem.

Making Apache point to your files:

In start menu navigate through following path

Apache HTTP Server 2.2 > Configure Apache Server > Edit the Apache httpd.conf  Configuration File”

Search for DocumentRoot .

Change it from something like DocumentRoot “C:/Program Files/Apache Software Foundation/Apache2.2/htdocs” to the location where your HTML files and site are located.

In my case: DocumentRoot “C:/public_html”

Then scroll down about one page and change: <Directory “C:/Program Files/Apache Software Foundation/Apache2.2/htdocs”> to point to the same location you set DocumentRoot to in the last step. Restart apache to make the changes take effect.




Related posts:

HTML5 news
Free iPhone Programming Ebook
How smart is your Theme?  How good is your support? Check out ThesisTheme for WordPress.

{ 2 comments… read them below or add one }

N.S Gautham Raj November 9, 2010 at 12:37 am

If you get error “the requested operation has failed!” then change the port number from 80 to some other number !!! It happens due to conflicting of port numbers .

Reply

N.S Gautham Raj November 9, 2010 at 12:41 am

If you are not administrator and if you get write permission error , then navigate through following path

Right click on httpd.conf, click properties, select the security tab, click edit, select users, and then check Full Control – Allow.

Problem solved .

Reply

Leave a Comment

Previous post:

Next post: