Friday, April 13, 2007

Installing Apache Server

So you downloaded Apache and is ready to install it. Double click on the downloaded "msi" file to open the installation window. Agree to the terms and conditions and click on the next button to move to the next step.
The explanations for the fields there are given directly in the Apache documentation. I'll list them below.

Network Domain: Enter the DNS domain in which your server is or will be registered in. For example, if your server's full DNS name is server.mydomain.net, you would type mydomain.net here.

Server Name: Your server's full DNS name. From the example above, you would type server.mydomain.net here.

Administrator's Email Address: Enter the server administrator's or webmaster's email address here. This address will be displayed along with error messages to the client by default.

For whom to install Apache Select for All Users, on Port 80, as a Service - Recommended if you'd like your new Apache to listen at port 80 for incoming traffic. It will run as a service (that is, Apache will run even if no one is logged in on the server at the moment) Select only for the Current User, on Port 8080, when started Manually if you'd like to install Apache for your personal experimenting or if you already have another WWW server running on port 80.
If you are going to run Apache locally on your computer, don't worry about the fields. Just enter "localhost" in the first two fields and some email address in the last field (the email id need not be valid).

It is always better to start Apache manually as adding it as a service causes it to eat up resources. So choose the second option ie
"only for the Current User, on Port 8080, when started Manually"


Click on next an you will find yourself facing a familiar screen like this :

Choose the custom setup type and proceed. The only thing that you have to change in the next screen is the location of your install. Choose the location as "D:\Server\" as we are supposing it to the root folder of all our PHP activities.
On the next screen select "install" and after a successful installation, select finish to quit the installer.


Give a congrats to yourselves. You just installed Apache!
Start the Apache server from your start menu or directly from the location in which you have installed apache. In this case, "D:\Server\Apache\". The first time you start Apache and if you have enabled ICF, it will pop up a warning window. Click on "Unblock" and viola, your computer is a server!

To make sure Apache is running, open up a webserver and type in localhost:8080
If Apache is working, you will see a webpage like this

1 comment:

ullas said...

eda very useful..
keep up the gud work...