Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. SBS2003

    SBS2003 Member

    Joined:
    Aug 14, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. icanectc

    icanectc Well-Known Member

    Joined:
    Mar 10, 2003
    Messages:
    344
    Likes Received:
    0
    Trophy Points:
    166
    I vote for sticky too!
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice