Monday, 7 March 2011

Installing Apache in Unix

Yeah, the version maybe old but however the way and concepts of installing is still the same.

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 
 
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

Cash flow Forecasting

Why cash forecasting? A cash forecasting model is an essential tool for treasuer to manage working capital. Forecasting preempt treasurer ...