SBS2003

Member
Aug 14, 2004
20
0
151
I searched and searched but couldn't find the answer so I apologize if this is in a different thread.


I installed Tomcat through WHM. I installed a servlet on a customer again, through WHM.

Customer decides they no longer want to do .jsp pages.

How can I remove the servlet from the customer account to free-up those resources? (Or does it even matter?)


Mark
 
C

cPanelBilly

Guest
SBS2003 said:
I searched and searched but couldn't find the answer so I apologize if this is in a different thread.


I installed Tomcat through WHM. I installed a servlet on a customer again, through WHM.

Customer decides they no longer want to do .jsp pages.

How can I remove the servlet from the customer account to free-up those resources? (Or does it even matter?)


Mark
currently all you can do is manually edit the httpd.conf and remove the lines in there.
 

SBS2003

Member
Aug 14, 2004
20
0
151
I am a dummy

Billy,

Since I am pretty ignorant when it comes to the httpd.conf - would you be able to tell me exactly what I need to remove assume the clients's domains is abcd.com and the username is abcd.

Sorry to be a pain but the last time I had to manually edit the httpd.conf it took me an hour just to find the right section!

Thanks,

Mark
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
9
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Locate the users information in the httpd.conf file and remove the following from it.

Code:
<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>
Save and restart apache.

That's the first part, you should also run /scripts/gentomcatlist to update Tomcat's server.xml to remove the virtual host entry there as well. By lnot removing you end up wasting memory and resources.
 

SBS2003

Member
Aug 14, 2004
20
0
151
Thanks

Maybe this thread should be sticky so other can easily figure out how to remove the servlet?

But thanks for your help. Everything seemed to go fine.

Maybe in an update WHM can have an option like "List all accounts with Tomcat Servlet Installed" - This would be a big help.

Thanks again,

Mark