How to install tomcat 7 on centos

ARUN Posted in TOMCAT
0

Download JDK self extracting package ( Linux x64 – Self Extracting Installer) from 

http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html

wget -O jdk-6u26-linux-x64.bin http://download.oracle.com/otn-pub/java/jdk/6u26-b03/jdk-6u26-linux-x64.bin

mv jdk-6u26-linux-x64.bin /opt/

mkdir /usr/java

cd /usr/java

chmod 755 jdk-6u26-linux-x64.bin

sh /opt/jdk-6u26-linux-x64.bin

[[email protected] java]# JAVA_HOME=/usr/java/jdk1.6.0_26/

[[email protected] java]# export JAVA_HOME  

[[email protected] java]# PATH=$JAVA_HOME/bin:$PATH  

[[email protected] java]# export PATH  

 

vi /etc/profile

+++++++++++++++++++++++++++++

JAVA_HOME=/usr/java/jdk1.6.0_26  

export JAVA_HOME  

PATH=$JAVA_HOME/bin:$PATH  

export PATH  

++++++++++++++++++++++++

Download and Unpack Tomcat

 

Tomcat important files

ARUN Posted in TOMCAT
0

/usr/local/apache/conf/userdata/ssl/2/UN/domain.com/cp_jkmount.conf

Cpanel and Tomcat port issue

ARUN Posted in TOMCAT
0

I am able to view my website only using :  domain.com:8080

So for apache to route the request to tomcat use the below in .htaccess

=========================
SetHandler jakarta-servlet
SetEnv JK_WORKER_NAME ajp13
=========================

Java servelet install

ARUN Posted in TOMCAT
0

/scripts/addservlets –domain=a24uall.info

Increase tomcat memory limit

ARUN Posted in TOMCAT
0

vi /var/cpanel/tomcat.options

-Xmx2048m
-Xms2048m

/usr/local/jakarta/tomcat/conf/server.xml

ARUN Posted in TOMCAT
0

/usr/local/jakarta/tomcat/conf/server.xml