first you have to download apache 2.2
go to http://httpd.apache.org/download.cgi and download Unix Source: httpd-2.2.15.tar.bz2
then go to http://httpd.apache.org/docs/2.0/install.html and read the instructions carefully seriously please read it
PREFIX=path you installs the server
you can ignore Customize$ vi PREFIX/conf/httpd.conf part instead you can open the PREFIX/conf/httpd.conf file using the text editor and edit ServerName part which is by default a comment with "localhost". if you are told to change the port find "Listen" and change the value next to it to port number by the way default port number is 80
save and quit
after doing all this to test your server type "sh PREFIX/bin/apachectl start"
then open a browser and type localhost:
then if you did the config properly it will show "it works!"
if you are told to deploy files(put files to the server) copy them to htdocs folder assume that you put a hello.html file into it then to open it in the browser you have to type localhost:
sample for hello.html
==============
type this in a txt editor and save it as hello.html if you wont to try it
:)