Install Apache on Windows
Attention! To install Apache form your Linux distributions you must have admin privilidges.
This page shows you how to install Apache Web Server on Windows (XP).
First of all You need to download Apache Windows binary
. You can get it directly from Apache download page
. Look for "Win32 Binary (MSI Installer)", save it somewhere localy and run it. You will seee the following:
Then proceed with Apache Installation dialog by clicking NEXT:
You need to accept Apache Terms and Conditions:
Apache Windows installation wizard might give you some general information abotu the project:
Apache installation wizrd promts you to enter server details:
Probably you want to enter some real data of you web site similar to the example below:
There are two options of installation: typical and custom. For default Apache installtion Typical one will do.
After prompt you can change the default path where Apache should be installed. We kept the default one.
Now everything is ready to copy Apache files to your hard disk.
Just wait for a while unless apache will finish copying and initial setup:
That is it! Apache has been installed on your windows box and is up and running!
Most windows systems have firewall switched on. You MUST unblock firewall to make Apache respond to your requests. Other wise firewall will blocck everything going from and toyour web server.
Now you may check that evrything is fine and Apache running without any problems. You should see icon as shown below that shows current status.
You may use this Icon to control your web server: stop, start, restart it at any time. Please, make sure that you restart it after every change of configuration. Otherwise in most cases changes won't have any effect.
In order to see you web server doing something just fire up your browser and go to "http://localhost" site (it is your deafult locale site). Different versions of Apache has different greetings. Version 2.2.3 greeting shown below:
Now you can configure it! The example below shows how to find you configuration file.
Configuration files for Windows and Linux are very similar (except File path syntax). Please, refre to our Apache confugration
page for futher instructions.
Obviously if you installed Apache on your local box and want to access it localy, you need to let you system know how to resolve your local domain name. To do that you need to add 127.0.0.1 www.exmaple.com your local domain name (e.g. www.example.com) to C:\WINDOWS\system32\drivers\etc\hosts .