vishal

Well-Known Member
Jan 28, 2003
339
0
166
India
Hello All,

Could any one help me out in Removing the Tomcat from my server as i has screwed my httpd.

The removal should be safe and should not harm my server ???

Plssssss any help will be appreciated

Regards,
:( :eek:
 

sexy_guy

Well-Known Member
Mar 19, 2003
847
0
166
Just comment out the tomcat modules in httpd.conf then start the bloody thing.
 

vishal

Well-Known Member
Jan 28, 2003
339
0
166
India
Thanks!!

Hello,

Thanks for the reply.

But will it cause anything to Apache or any other deamon. I don't want to get overloaded with more work now.


Regards,
 

sexy_guy

Well-Known Member
Mar 19, 2003
847
0
166
Vishal look in httpd.conf and comment out everthing pointing to tomcat then restart Apache. I did this awhile ago. It will not break anything. If you get errors then you need to look for more Tomcat modules. There should be two of them. I cant remember which ones exactly because i removed mine a long time ago. And never use the the option INSTALL SERVLETS from WHM after that.
 

vishal

Well-Known Member
Jan 28, 2003
339
0
166
India
found these

Hello,

I found these two entries in my httpd.conf. I'll comment them.

LoadModule jk2_module libexec/mod_jk2.so
AddModule mod_jk2.c

But there is no other way that will completely wipe of this from my server.

Regards,
 

flashweb

Well-Known Member
Mar 13, 2003
256
2
168
cPanel Access Level
Root Administrator
Even if we just comment out LoadModule jk2_module libexec/mod_jk2.so and AddModule mod_jk2.c from httpd.conf

There will be lot of jdk/jsp process running on the server.

Any way to remove these ?
 

vishal

Well-Known Member
Jan 28, 2003
339
0
166
India
Re: found these

Originally posted by vishal
Hello,

I found these entries in my httpd.conf. I'll comment them.

#LoadModule jk2_module libexec/mod_jk2.so

#AddModule mod_jk2.c

#<IfModule mod_jk.c>
#JkMount /*.jsp ajp13
#JkMount /servlet/* ajp13
#JkMount /servlets/* ajp13
#</IfModule>
Commenting these entries removed the Logging of tomcat records from error_log and also removed the entry (mod_jk2) from the WHM Page.

and even the server load is fine now :)

Regards,
:p
 

flashweb

Well-Known Member
Mar 13, 2003
256
2
168
cPanel Access Level
Root Administrator
Will it remove these processes ?

[email protected] [~]# ps -aux|grep jdk
root 1072 0.0 3.9 226988 10124 ? S May03 0:12 /usr/local/jdk/bi
root 1123 0.0 3.9 226988 10124 ? S May03 0:04 /usr/local/jdk/bi
root 1124 0.0 3.9 226988 10124 ? S May03 0:14 /usr/local/jdk/bi
root 1144 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1147 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1170 0.0 3.9 226988 10124 ? S May03 3:25 /usr/local/jdk/bi
root 1171 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1172 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1173 0.0 3.9 226988 10124 ? S May03 0:03 /usr/local/jdk/bi
root 1230 0.0 3.9 226988 10124 ? S May03 0:24 /usr/local/jdk/bi
root 1231 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1244 0.0 3.9 226988 10124 ? S May03 1:13 /usr/local/jdk/bi
root 1248 0.0 3.9 226988 10124 ? S May03 0:23 /usr/local/jdk/bi
root 1253 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1255 0.0 3.9 226988 10124 ? S May03 1:12 /usr/local/jdk/bi
root 1299 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1300 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1301 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1302 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1303 0.0 3.9 226988 10124 ? S May03 1:27 /usr/local/jdk/bi
root 1304 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1305 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1306 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1307 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1308 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
 

vishal

Well-Known Member
Jan 28, 2003
339
0
166
India
Originally posted by flashweb
Will it remove these processes ?

[email protected] [~]# ps -aux|grep jdk
root 1072 0.0 3.9 226988 10124 ? S May03 0:12 /usr/local/jdk/bi
root 1123 0.0 3.9 226988 10124 ? S May03 0:04 /usr/local/jdk/bi
root 1124 0.0 3.9 226988 10124 ? S May03 0:14 /usr/local/jdk/bi
root 1144 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1147 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1170 0.0 3.9 226988 10124 ? S May03 3:25 /usr/local/jdk/bi
root 1171 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1172 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1173 0.0 3.9 226988 10124 ? S May03 0:03 /usr/local/jdk/bi
root 1230 0.0 3.9 226988 10124 ? S May03 0:24 /usr/local/jdk/bi
root 1231 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1244 0.0 3.9 226988 10124 ? S May03 1:13 /usr/local/jdk/bi
root 1248 0.0 3.9 226988 10124 ? S May03 0:23 /usr/local/jdk/bi
root 1253 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1255 0.0 3.9 226988 10124 ? S May03 1:12 /usr/local/jdk/bi
root 1299 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1300 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1301 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1302 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1303 0.0 3.9 226988 10124 ? S May03 1:27 /usr/local/jdk/bi
root 1304 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1305 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1306 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1307 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
root 1308 0.0 3.9 226988 10124 ? S May03 0:00 /usr/local/jdk/bi
Mine has stopped!

/usr/local/stoptomcat
try this.

Regards,
 

Alarion

Member
Sep 3, 2001
19
0
301
tomcat shoudl be installed into

/usr/local/jakarta/jakarta-tomcat-4.1.12-src/

the binaries are in
/usr/local/jakarta/jakarta-tomcat-4.1.12-src/build/bin

You can try removing the tomcat dir if you like. I don't know what adverse affects it will have on startup scripts (I would imagine just an error being logged that it couldn't find the binary).
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
This sounds a bit scary. Anyone try this?

Originally posted by Alarion
tomcat shoudl be installed into

/usr/local/jakarta/jakarta-tomcat-4.1.12-src/

the binaries are in
/usr/local/jakarta/jakarta-tomcat-4.1.12-src/build/bin

You can try removing the tomcat dir if you like. I don't know what adverse affects it will have on startup scripts (I would imagine just an error being logged that it couldn't find the binary).