How to install tomcat in linux server WHM

How to install tomcat in linux server WHMWHM>> then easyapache then follow the step and select tomcatOr

You can use below script via command Line
/scripts/easyapache

Select the tomcat and build it.
After done you will need to go to WHM >> install servlets >> then select the domain that you want to enable it to use tomcat and press install .

After done that you can test your site using below code

For example testing.jsp in your domain
example.com/testing.jsp

———————————-OR———————————-

If it’s not found tomcat in Manage plugins section, install Tomcat RPM

1. Login to WHM as root user
2. Go to –> Main >> Software >> Install a RPM
and select appropriated RPMs tomcat and its libraries.

———————————-OR———————————-
Download tomcat 6 from http://tomcat.apache.org/download-60.cgi

You want the: Binary Distributions -> Core -> tar.gz

cd and wget to /usr/local/jakarta

—————
tar xzf apache-tomcat-6*
rm -f apache-tomcat-6*.tar.gz
cd apache-tomcat-6*
cd bin
tar xfz commons-daemon-native.tar.gz
cd commons-daemon-*-native-src/unix
./configure
make
cp jsvc ../../
cd /usr/local/jakarta/
chown -R tomcat.nobody apache-tomcat-6.*
—————

Copy over conf/workers.properties from the current one, and if this is an upgrade, then you will need to copy over the hosts block from the conf/server.xml on the current one.

—————
/usr/sbin/stoptomcat
cd /usr/local/jakarta
rm tomcat
ln -s apache-tomcat-6.* tomcat
chown -h tomcat.nobody tomcat
/usr/sbin/starttomcat

Bookmark the permalink.

Comments are closed.