Exposure to solaris: apache and tomcat

Source: Internet
Author: User

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.