Jan 25, 2010

How to install tomcat 6 (on solaris)

1. verify the existing environment on solaris

$ pkginfo | grep -i apache
system SUNWaclg Apache Common Logging
system SUNWapch2d Apache Web Server V2 Documentation
system SUNWapch2r Apache Web Server V2 (root)
system SUNWapch2u Apache Web Server V2 (usr)
system SUNWapchd Apache Web Server Documentation
system SUNWapchr Apache Web Server (root)
system SUNWapchu Apache Web Server (usr)

$ pkginfo | grep -i jre
JDS3 SUNWjre-config Java Run Time Integration
JDS3 SUNWjre-config-plugin Java Run Time Integration - Plugin

$ pkginfo | grep -i tomcat
system SUNWtcatr Tomcat Servlet/JSP Container (root)
system SUNWtcatu Tomcat Servlet/JSP Container

OK

-----------------------------------
2. Tomcat 6 install
OpenSSO (mentioned later) will not work
on tomcat 5.5 included in apache,
I installed apache-tomcat-6.0.20

(1) mv /var/apache/tomcat /var/apache/tomcat.old
(2) mv /usr/apache/tomcat /usr/apache/tomcat.old

(3) mkdir /usr/apache/tomcat60
(3') ln -s /usr/apache/tomcat60 /var/apache/tomcat

(4) unzip apache-tomcat-6.0.20.zip
(5) cd apache-tomcat-6.0.20
(6) mv bin conf lib logs temp webapps work /usr/apache/tomcat60/
(7) mv L* R* N* /usr/apache/tomcat60/

(8) ln -s /usr/apache/tomcat60 /usr/apache/tomcat
(9) chmod 755 /usr/apache/tomcat/bin/*
(10) chown -R root:bin /usr/apache/tomcat60

(11) /usr/apache/tomcat/bin/startup.sh
it will say as follows ...
-----------------------------------------------
Using CATALINA_BASE: /usr/apache/tomcat60
Using CATALINA_HOME: /usr/apache/tomcat60
Using CATALINA_TMPDIR: /usr/apache/tomcat60/temp
Using JRE_HOME: /usr
-----------------------------------------------
(12) verify if it's working ...
see if http://tomcat-server:8080/ is working with browser.

(13) modify script (e.g. /etc/init.d/httpd)
so that apache will run after tomcat runs
ref http://www.kazu.tv/blog/archives/000456.html

//

No comments: