www-lab

Well-Known Member
Feb 1, 2003
62
0
156
i installed tomcat few days ago and want to completely remove it now?

Can somebody help with this?

cPanel.net Support Ticket Number:
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
There's a howto at forum.cpanelhosts.com

cPanel.net Support Ticket Number:
 

hostit1

Well-Known Member
Jul 24, 2003
88
0
156
I found this info: It does work To delete Tomcat, follow the below.

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>
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Originally posted by hostit1
I found this info: It does work To delete Tomcat, follow the below.

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>
You're missing the following:

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
 

Planet_Master

Well-Known Member
Apr 18, 2002
232
0
316
New Yorker
Better remove these lines from httpd.conf as well or Apace will most likely fail.

AddModule mod_jk.c
Include "/usr/local/jakarta/jakarta-tomcat-4.0.3-src/build/conf/auto/mod_jk.conf"

AddType text/html .jsp
AddHandler jakarta-servlet .jsp

You may have one or all of these lines depending on your setup