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" (written 2008-12-14, updated 2008-12-15)
Associated topics are indexed under
A602 - Web Application Deployment - Apache httpd - Sourcing, Installation, Testing [3426] Automed web site testing scripted in Ruby using watir-webdriver - (2011-09-09)
[2520] Global and Enable - two misused words! - (2009-11-30)
[2184] Choosing the right version of Java and Tomcat - (2009-05-16)
[2096] Where is my new Apache httpd installed - (2009-03-22)
[2080] Using ApacheBench and jconsole to test and monitor Tomcat - (2009-03-14)
[1768] What is built in to this httpd and PHP? - (2008-08-23)
[1731] Apache httpd, MySQL, PHP - installation procedure - (2008-08-01)
[1707] Configuring Apache httpd - (2008-07-12)
[1455] Connecting to MySQL 5 from PHP on Mac OSX Leopard - (2007-12-03)
[1449] Upgrade Mac OSX to Leopard, Web Server Apache httpd config lost - (2007-11-29)
[1292] DHCP automatic IP address v Static IP - (2007-08-06)
[1095] Apache httpd , browser, MySQL and MySQL client downloads - (2007-02-28)
[982] Notes from the white board - (2006-12-14)
[907] Browser -> httpd -> Tomcat -> MySQL. Restarting. - (2006-10-28)
[660] Stopping and restarting Apache httpd cleanly - (2006-03-29)
[550] 2006 - Making business a pleasure - (2006-01-01)
[526] Apache httpd - serving web documents from different directories - (2005-12-12)
[523] Apache httpd release 2.2 - (2005-12-10)
Some other Articles
Nuclear Physics comes to our web siteBlame CulturePerl substitute - the e modifierVariable Types in PerlSummary - Apache httpd build on LinuxForwarding session and cookie requests from httpd to TomcatPort and GlassesChristmas scenes and eventsServer - Service - Engine - Host, TomcatURL rewriting with front and back servers