Main Content

Summary - Apache httpd build on Linux

Archive - Originally posted on "The Horse's Mouth" - 2008-12-14 13:59:31 - Graham Ellis

As a regular user:

1002 tar xzf httpd-2.2.10.tar.gz
1003 cd httpd-2.2.10
1004 ./configure --prefix=/usr/local/apache_2.2.10 \
   --enable-rewrite --enable-so --enable-proxy \
   --enable-proxy-http --enable-proxy-ajp \
   --enable-proxy-balancer
1005 make
1006 pwd
1007 su -

As the administrator:

1001 cd /home/trainee/httpd-2.2.10
1002 make install
1006 cd /usr/local/apache_2.2.10/
1009 ./bin/apachectl start

The numbers given in the example above are the history numbers taken from a recent install.

If you are deploying a LAMP system, you would follow this with:

A MySQL installation
A PHP Installation

Notes

a) The options selected in the above example build an httpd suitable for the later installation of PHP, and with mod_proxy connectors allowing it to talk to Tomcat to run Java applications

b) Directory names and locations given are examples

c) You may need to close down a previous installation of httpd before you start this one.

d) Configuration will be necessary in addition to the above steps, which will simply give you a bare web server with a single page that says "It works"