Sum and time
====================================
2000-12-11
Purpose
======================================
Create an apache + tomcat JSP Application Server under/WWW on SOLARIS 7
Download original file
======================================
Apache_1.3.14.tar.gz
Jakarta-tomcat-3.2.tar.gz
Jakarta-tomcat-3.2-src.tar.gz
Compile apache
======================================
Gzip-dc apache_1.3.14.tar.gz | tar xvf-
Cd apache_1.3.14
./Configure -- prefix =/www/apache -- enable-module = so -- enable_rule = SHARED_CORE (DSO allowed, required to run apxs)
Make
Make install
Run tomcat
======================================
Gzip-dc jakarta-tomcat-3.2.tar.gz | tar xvf-
Music jakarta-tomcat-3.2 tomcat
Cd tomcat/bin
./Startup. sh (automatically generate the tomcat-apache.conf file)
Cp tomcat-apache.conf/www/apache/conf/
Generate the mod_jserv.so File
======================================
Gzip-dc jakarta-tomcat-3.2-src.tar.gz | tar xvf-
Jakarta-tomcat-3.2-src/src/native/apache/jserv
/Www/apache/bin/apxs-c-o mod_jserv.so *. c (specify the apxs path)
Cp mod_jserv.so/www/apache/libexec
Modify httpd. conf and tomcat-apache.conf
======================================
Cd/www/apache/conf
Vi httpd. conf
(Insert line) Include conf/tomcat-apache.conf (add a line in httpd. conf)
(Tomcat-apache.conf does not make any changes)
Run apache
======================================
Cd/www/apache/bin
./Apachectl start
Test Results
======================================
The default ROOT directory is/webapps/ROOT.
The default class directory is/webapps/ROOT/WEB-INF/classes
The test is successful.
References
======================================
Http://www.jguru.com/jguru/faq/printablefaq.jsp? Faq = Tomcat
Http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html
Summary
======================================
It is difficult to generate the mod_jserv.so file under SOLARIS. It cannot be compiled in LINUX. Different APACHE and UNIX versions are not universal.