Download the Apache http server, the version i'm using: http-2.2.6.tar.gz
Next extract the file:
# gzip -d http-2.2.6.tar.gz
# tar xvf http-2.2.6.tar
Go into the folder by typing the command below:
# cd http-2.2.6
Now i need to compile the source codes for Apache Server. At this point of time, make sure the C++ compiler is installed. Use gcc c++.
# ./configure --prefix = /usr/local/apache2
Build the following Apache Server
# make
(Make sure to log in as root)
# make install
Start the server using these commands
/usr/local/apache2/bin/apachectl -k start
if configure with prefix
# prefix/apachectl -k start
See if the server really starts
# telnet localhost http < /dev/null
if results from the above command is this, server has already start
trying connect 127.0,0.1
connect to localhost
/usr/local/apache2/bin/apachectl -k start
if configure with prefix
# prefix/apachectl -k start
See if the server really starts
# telnet localhost http < /dev/null
if results from the above command is this, server has already start
trying connect 127.0,0.1
connect to localhost
Now to start up the server, execute this command
# /usr/local/apache2/bin/apachectl -k start
Type htt://localhost in the web browser to see if it displays the page.
No comments:
Post a Comment