Introduction............................................................................................................................................
9
Executive Summary...........................................................................................................................
Intended Audience............................................................................................................................
Scope and Purpose............................................................................................................................
HP Services........................................................................................................................................
Typographic Conventions...............................................................................................................
10
HP Encourages Your Comments.....................................................................................................
HP Open Source Web Server Middleware Stack..................................................................................
11
Web Server Stack Architecture........................................................................................................
Installing and Verifying the Linux Distribution...................................................................................
13
Installing the Linux Distribution.....................................................................................................
Required Packages and Installation Recommendations............................................................
Verifying the Linux Distribution Installation.............................................................................
14
Installing, Configuring, and Managing Web Server Middleware Stack Components.........................
15
Configuring the Basic Apache HTTP Server...................................................................................
Installing and Configuring Sun JDK on an HP Proliant System.....................................................
Installing and Configuring Tomcat.................................................................................................
17
Advanced Apache HTTP Server Features.......................................................................................
18
Using the Apache HTTP Server Benchmarking Tool.................................................................
Apache HTTP Server Status and Information...........................................................................
19
Configuring and Using the Modules....................................................................................
Apache HTTP Server Log...........................................................................................................
21
Using Webalizer to Perform Apache HTTP Server Log Analysis........................................
Using Virtual Host Support.......................................................................................................
22
Using Apache HTTP Server URL Redirection...........................................................................
23
Using Apache HTTP Server Proxy Features..............................................................................
24
Error Responses and Redirects...................................................................................................
25
Customizing Plain Text Responses.......................................................................................
Customizing Local URL Redirect Responses.......................................................................
Customizing External URL Redirect Responses...................................................................
26
Using Per-User Web Directories.................................................................................................
Integrating the Web Server Stack Components...............................................................................
27
Integrating the Apache Web Server and PHP............................................................................
29
Integrating the Apache Web Server and Perl.............................................................................
Integrating the Apache Web Server and Python........................................................................
30
Connecting Tomcat to a Database...................................................................................................
Connecting Tomcat and MySQL................................................................................................
31
Obtaining and Installing the JDBC Drivers..........................................................................
Creating a New Data Source.................................................................................................
Configuring the MySQL Server............................................................................................
32
Testing MySQL Database Connectivity................................................................................
Connecting Tomcat and Oracle.......................................................................................................
33
Obtaining and Installing the Oracle JDBC Driver......................................................................
34
Creating an Oracle Data Source.................................................................................................
Configuring the Oracle Server...................................................................................................
Testing the Oracle Database Connectivity.................................................................................
36
Installing Hibernate, Tomcat, and JDK......................................................................................
Configuring a Database Driver in Tomcat.................................................................................
Adding Test Data to the Databases............................................................................................
Table of Contents
3