greengiant

Well-Known Member
Aug 31, 2003
48
0
156
I install Tomcat 4 which i could not get to work the way i wanted. Now I am trying to Remove it, and I have delete all teh tomcat files i could find, i removed it from the S99local startup script. The "Install Servlets" option still shows up in the WHM, and WHM keeps trying to start the serivce, which is no longer there, and is emailing me errors. How do i fix this?

cPanel.net Support Ticket Number:
 

ciphervendor

Well-Known Member
Aug 26, 2002
1,050
0
166
Make sure that you remove the relevant file from /etc/chkserv.d/ and then service chkserv restart

Also make sure that you remove all of the lines from within your apache config file.

cPanel.net Support Ticket Number:
 

greengiant

Well-Known Member
Aug 31, 2003
48
0
156
That stoppped the restarting but how do i remvoe it theese tow options from WHM?

Restart Service -> "Servlet Server (tomcat)"
Plugins -> "Install Servlets"

cPanel.net Support Ticket Number:
 

hostit1

Well-Known Member
Jul 24, 2003
88
0
156
This is what I did to remove Tomcat. It seems to work

First, if you already have another version of Tomcat on your server, clean it out. Delete these files:
in /usr/local
jakarta
in /
jsp-install-4 (or whatever version you have)

Then edit httpd.conf and remove all instances of

<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>
</VirtualHost>

The below is important too . . . contributed from Casey

cd /etc/init.d
./chkservd stop
cd /etc/chkserv.d
rm tomcat
cd /var/run/chkservd
rm tomcat
cd /etc/init.d
./chkservd start
vi or pico /etc/rc.d/rc.local
remove /usr/sbin/starttomcat
 
Last edited: