The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Uninstall Java Servlet?

Discussion in 'cPanel Developers' started by SBS2003, Oct 12, 2004.

  1. SBS2003

    SBS2003 Member

    Joined:
    Aug 14, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelBilly

    cPanelBilly Guest

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

    SBS2003 Member

    Joined:
    Aug 14, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    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.
     
  5. SBS2003

    SBS2003 Member

    Joined:
    Aug 14, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  6. icanectc

    icanectc Well-Known Member

    Joined:
    Mar 10, 2003
    Messages:
    344
    Likes Received:
    0
    Trophy Points:
    16
    I vote for sticky too!
     
Loading...
Similar Threads - Uninstall Java Servlet
  1. xcp
    Replies:
    1
    Views:
    409

Share This Page