HP Open Source Middleware StacksBlueprint:Web Server on HP ProLiant Servers with SUSE LinuxEnterprise Server Version 10HP Part Number: 5991-5565Publis
Typographic ConventionsThis document uses the following typographical conventions.CommandA command name or qualified command phrase.ComputerOutText di
HP Open Source Web Server Middleware StackThe following components comprise the HP OSMS Web Server Middleware Stack:Apache Web Server The Apache Web S
Figure 1 Web Server Stack ArchitectureTable 1 lists the software used to test the configurations described in this blueprint.Table 1 Software Test Con
NOTE: The installation and configuration of the MySQL and Oracle databases are not coveredin this blueprint. The MySQL and Oracle databases are instal
2. Under the Primary Functions heading, select Web and LAMP Server and under theDevelopment heading, select C/C++ Compiler and Tools as displayed in F
# rpm –q apache2 apache2-prefork apache2–mod_perl apache2–mod_python \ apache2–mod_php5 webalizerIf any of these packages are not installed, locate th
1. Download the Sun JDK package from the Java website and install as follows (see Table 1(page 12) for the correct version and website link):Change to
4. Log out of the system, and then log back in to start using the revised profile.5. Verify the Sun JDK installation was successful by entering the fo
NOTE: If the iptables firewall is enabled, you will not be able to connect to Tomcat froma remote computer.6. If necessary, stop Tomcat by entering th
You can force a heavier load on the Apache HTTP Server by increasing the number of concurrencyrequests with the -c option, and by prolonging the testi
© Copyright 2007 Hewlett-Packard Development Company, L.P.Legal NoticeConfidential computer software. Valid license from HP required for possession, u
5. Verify that the /etc/apache2/sysconfig.d/loadmodule.conf file contains thefollowing lines:LoadModule info_module /usr/lib64/apache2-prefork/
Apache HTTP Server LogThe Apache HTTP Server provides a detailed and flexible information-logging mechanism. Thetwo most important log files are the e
Figure 8 Webalizer Usage ReportFor detailed information, see the Webalizer website at:http://www.mrunix.net/webalizer/Using Virtual Host SupportA virt
8. Populate the file that you created in Step 7 with the following lines:<HTML> <HEAD> </HEAD> <BODY DIR="LTR"> &
</BODY></HTML>4. Edit the following configuration file:/etc/apache2/default-server.confAdd the following line to the preceding file:Redi
6. View the access log file on the Apache Proxy server. Messages similar to the following arecontained in the file:YOUR_WEB_BROSWER_IP - - [03/Feb/200
3. Verify the custom local URL redirect message by opening a browser and entering thefollowing website:http://<YOUR_WEB_SERVER_IP>/non-existThe
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"> <FONT FACE="Times New Roman, serif"> <FONT SIZE=6>The is pers
3. Insert the following line below the DocumentRoot line:JkMount /jsp-examples/* worker14. Before you can verify the Tomcat and Apache integration, yo
/var/log/apache2/error_log/var/log/apache2/access_log/var/log/apache2/mod_jk.logIntegrating the Apache Web Server and PHPThe Apache Web server that is
Table of ContentsIntroduction...
Integrating the Apache Web Server and PythonThe apache2–mod_python module embeds the Python environment into the Apache Webserver. Embedding this envi
Figure 11 Tomcat Connections Using JDBCTomcat uses the data-source concept to create database connections. A data source must beconfigured in an XML c
1. Create a data source descriptor file named $CATALINA_HOME/conf/context.xml andinsert the following lines:<Context>…<Resource name="jd
1. Create a JSP file named $CATALINA_HOME/webapps/ROOT/mysqltest.jsp and insertthe following lines:<%@page contentType="text/html" import
layer for web applications. A JDBC connector for Oracle is needed to integrate an external OracleDatabase server with the Tomcat Web server. This sect
1. Create a JSP file named $CATALINA_HOME/webapps/ROOT/oracleTest.jsp and insertthe following lines:<%@page contentType="text/html" impor
Connecting Tomcat to MySQL or Oracle Using HibernateHibernate is an open-source object and relational mapping framework. It uses a lightweightobject e
1. Log in to Oracle using the user name osmsusr and password osmspass by entering thefollowing command:# sqlplus osmsusr/osmspass@osmsdb_ora2. In the
maxWait="5000" username="osmsusr" url="jdbc:oracle:thin:@IP_OR_HOSTNAME_OF_DB_SERVER:1521:osmsdb_ora" maxAc
/osms/hibernate/utility and add the following lines so the application can interactwith Hibernate:package com.hp.osms.hibernate.utility; import org.hi
Creating a Simple Application in Tomcat...37Verifying the Simple Applic
<property name="firstName" type="java.lang.String"> <column name="FIRST_NAME" length="30" /&g
org.hibernate.Session hbsession = HibernateSessionFactory.getSession();try{ Transaction tx = hbsession.beginTransaction();Users users= new Users();
Secure the Web Server StackThis section covers web server security.• Data Transportation—Secure Sockets Layer (SSL) is a widely used technology to pro
5. Perform the test by navigating to the website located at:https://<YOUR_HOSTNAME>Verify that the certificate is displayed as in Figure 15:Figu
Creating a Password FileCreate a password file to contain the HTTPS server passwords using the following steps:1. Create the password directory by ent
NOTE: In the steps for this procedure:rootdn is set to"cn=Manager,dc=example,dc=com"rootpw is set to secret in the slapd.conf file1. Create
1. Edit the following file:/etc/apache2/default-server.confAdd the ldap and authnz_ldap modules to the APACHE_MODULES line. Once this edit iscomplete,
1. Create a web application named myweb in your Tomcat Web server by adding the followingcode to the file $CATALINA_HOME/conf/server.xml:TIP: To apply
<P ALIGN=CENTER STYLE="margin-bottom: 0cm"> <FONT FACE="Times New Roman, serif" SIZE=6> Integration of tom
NOTE: The HP OVO Management server runs on either HP-UX or Windows systems. Theexamples in this blueprint use HP OVOW.Figure 16 illustrates the SPIs a
List of Figures1 Web Server Stack Architecture...12
ToolsTable 3 provides an overview of the Tools group in the Tomcat Servlet Engine SPI (SESPI).Table 3 SE-SPI Applications of the Tool GroupDescription
Appendix A: Checklist for Building a Web Server Middleware StackThe following checklist is intended to assist you in building a Web Server Middleware
StatusComplete these steps:Implement Tomcat authorization with Symas CDS (page 46).12Configure Tomcat monitoring with HP OVOW (page 48).1352
Appendix B: Frequently Asked QuestionsQ: How do I disable firewall settings?A: By default, SLES has a firewall enabled. This prevents external systems
Appendix C: Vendor Information ReferenceThis appendix provides references to the vendors that are referenced in the HP OSMS Web Serverstack. These web
Appendix D: Hibernate Test Application Source CodeThis appendix provides the contents of the following two Hibernate Test Application sourcecode files
public void showData(JspWriter out,List list) { Iterator it = list.iterator(); try{out.print("<table width='100%' border=&a
{ HibernateSessionFactory.closeSession(); } %> <body><div align="center"><font size="7">OSMS Hibernate Te
List of Tables1 Software Test Configuration...1
IntroductionExecutive SummaryThe HP Open Source Integrated Portfolio (HP OSIP) comprises a range of products and servicesdesigned to verify that custo
Comentários a estes Manuais