How to install Apache 2.4 on windows

Some folks new to the fields of web designing or development have  heard the term “web server”. Basically the term “web server” means the computer running such a server program. In brief the term has a simple  meaning as It refers to any software that is capable of accepting HTTP requests from other programs (“clients”), and responding to their requests by outputting (“serving”) data of various types. The most common example of this is a website server delivering web pages to web browsers.

There are too many web server programs available across web. Some of them are  Apache, IIS, lighttpd, and Nginx. There is a another one , Google’s GWS which  is not publicly available.The Apache HTTP Server, commonly referred to simply as “Apache”.The project is developed by the Apache Software Foundation, which is continually maintaining and improving it.

In this post i will explain you how to install Apache 2.4 on windows 8.1. there are various guides to install apache 2.4 on internet. but all of them are now older and not supported for latest version. so my this post is dedicated to all those users who want to install apache 2.4.

Those who are new to Apache and don’t know too much about Apache server first spend some time here to understand what is actually Apache web server

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.There are some other complicated terms like redhat and centos for Apache, if you know about these terms then good for you and too good if  you don’t know because now you have a chance to learn new things.

The Apache HTTP Server (“httpd”) is a project of The Apache Software Foundation.

What Wikipedia says about Apache-

The Apache HTTP Server, colloquially called Apache, is the world’s most used web server software. Originally based on the NCSA HTTPd server, development of Apache began in early 1995 after work on the NCSA code stalled. Apache played a key role in the initial growth of the World Wide Web, quickly overtaking NCSA HTTPd as the dominant HTTP server, and has remained most popular since April 1996. In 2009, it became the first web server software to serve more than 100 million websites.

As of June 2013, Apache was estimated to serve 54.2% of all active websites and 53.3% of the top servers across all domains.

What Webopedia says about Apache

a public-domain open sourceWeb server developed by a loosely-knit group of programmers. The first version of Apache, based on the NCSA httpd Web server, was developed in 1995.

The original version of Apache was written for UNIX, but there are now versions that run under OS/2, Windows and other platforms.

so now come to original matter i.e. how to install Apache 2.4 on windows.  First of all you must clear that this post will cover installation guide of Apache only for windows. This post will cover following topics.

  • How to Install Apache 2.4 on windows
  • How to Install Apache as a service on windows
  • Apache 2.4 msi install

sorry to say but these topics will not covered here.I will publish some more posts on these topics ASAP

  • Install Apache 2.4 centos
  • Install Apache tomcat
  • Install Apache Ubuntu
  • Redhat install Apache
  • synology install Apache
  • Install Apache Linux

Read complete post to install apache 2.4 on windows

    Requirements:-

  • window 8.1,8,7 and older
  • data connection
  • zip program to unzip files
  • most important thing i.e. patience

Apache: Unlike previous versions of Apache that included an installer, Apache 2.4 requires you to extract the compressed file to a directory on your computer. Apache doesn’t provide binaries for Windows, however they have links to several third-party sites that provide binaries, for example Apache Lounge.

now first of all download Apache binaries . to download click on this link  ApacheLounge.com

now click on the download link as shown below picture. here are two options  for both window 64 bit and 32 bit.

       apache

        a download will start. don’t worry its all about 12 Mb. take a coffee.

now go to your download directory and extract the files to directory  “C:Apache24”. if you extract any other place then you have to change some settings in Apache defaults. so i don’t recommend this.\

WATCH VIDEO

         Start Apache :

you can start Apache server in 2 ways

first go to this directory in your pc C:Apache24binhttpd

and the other one is by command prompt  i.e.

  • Open up a command prompt window
  • Type “cd ../../apache24/bin” (without the quotes) -> Enter key.
  • Type httpd.exe

now navigate your browser to http://127.0.0.1 or http://localhost.

         Install Apache as a Windows Service

To install Apache as a Windows Service, open a command prompt window with administrative privileges and run:

  • Type “cd ../../apache24/bin” (without the quotes) -> Enter key.
  • Type httpd.exe -k install

You should get the message “The Apache2.4 service is successfully installed.”

  • to install PHP 5.5 with Apache go here
  • a post for installation of Mysql will be published ASAP

Resolve Errors-

It may show you some errors. Don’t worry the solution is here

  • If you get an error  saying that MSVCR110.dll is missing on your system, you’ll need to install the Visual C++ Redistributable for Visual Studio 2012 – as always, when prompted, select the appropriate bit-version : vcredist_x86.exe for 32-Bit systems and vcredist_x64.exe for 64-Bit ones.

 

  • If you get an error saying that it can’t bind to port 80, check if another application uses that port – also Skype is known to use ports 80 and 443 by default; uncheck “Use port 80 and 443 as alternatives for incoming connections” in its advanced connection settings, restart Skype to apply the changes, and then you should be able to start Apache without issues.
to install PHP 5.5 with Apache go here

Now, hit Win + R on your keyboard and enter “services.msc”. In the Services window you will see Apache2.4 listed, we can simply right click on this item and select “start”. By default, Apache 2.4 is set to startup automatically after the service is installed, so you should not need to re-do again. However, it won’t hurt to check if the Startup Type is set to ‘Automatic’. Right click on Apache 2.4 and select ‘Properties’ to change those settings.

if you are getting any errors let me show through comments...

Rajendra Choudhary

Rajendra Choudhary is a engineering student and a professional blogger. His free time is spent on blogging, wordpress, creating videos for youtube channel to share his knowledge with rest of us

  • sawan jha

    all set. but when i opem httpd.exe it says “AH00558: httpd.exe: Could not reliably determine the server’s fully qualified domain name, using fe80::3479:d7e1:5842:d8da. Set the ‘ServerName’ directive globally to suppress this message”please tell me how to fix it. i also try with cmd promt.

  • just go to C:\Apache24\conf\httpd.conf and add at the end of httpd.conf file “ServerName localhost”
    hope this works for you

  • Hey,

    I am getting the Below Error While Installing, Can You Please Help Me Out.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>cd\apache24

    C:\Apache24>cd bin

    C:\Apache24\bin>httpd.exe
    (OS 10013)An attempt was made to access a socket in a way forbidden by its acces
    s permissions. : AH00072: make_sock: could not bind to address [::]:80
    (OS 10013)An attempt was made to access a socket in a way forbidden by its acces
    s permissions. : AH00072: make_sock: could not bind to address 0.0.0.0:80
    AH00451: no listening sockets available, shutting down
    AH00015: Unable to open logs

    C:\Apache24\bin>

    • check that you installed apache as a windows service. if not then install that. if you followed our tutorial then there is no mistake but if error shows again then you must check about it on google.try it. copy and paste your error in google search box there are lotz of solution there.