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