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.

Deinstall JSP for one account

Discussion in 'General Discussion' started by strauberry, Dec 27, 2003.

  1. strauberry

    strauberry Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    how can I deinstall JSP for one account? I find only install but not deinstall... Thank you!

    Best regards
    strauberry
     
  2. 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
    In httpd.conf remove the jsp settings for that account.

    <IfModule mod_jk.c>
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
    JkMount /servlets/* ajp13
    </IfModule>


    Then in /usr/local/jakarta/jakarta-tomcat-4.0/build/conf/server.xml

    remove the following for that account.


    <Host name="domain.com" appBase="/home/username/public_html">
    <Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>
    </Host>

    <Host name="www.domain.com" appBase="/home/username/public_html">
    <Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>
    </Host>


    Restart tomcat and apache, done.
     
  3. strauberry

    strauberry Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
  4. ivaserver

    ivaserver Well-Known Member

    Joined:
    Aug 9, 2002
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    I have followed the intructions till

    /etc/rc.d/init.d/sshd restart

    when i ran this command putty closed and now i cannot log in

    i have tried ssh.domain and domain i get connection refused

    when i try to connect using putty telnet i get connection refused

    could someone explain in more detail this bit

    Now exit out, enter 'ssh.domain.com' as the host name, and put in your high level random port in the box, ssh into your box and your done.


    Thansk Ivaserver
     
  5. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    When we delete/terminate a count from WHM too we need remove manually?

    What is the command (in putty) tu restart tomcat and apache ?

    Is necesary install EJB ? 3 or 5 ?

    Thanks
     
  6. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    1) No need to remove anything from an account when it's terminated from WHM.
    2) Services restart commands :

    Apache : service httpd restart

    Tomcat :
    /usr/local/jakarta/tomcat/bin/shutdown.sh
    /usr/local/jakarta/tomcat/bin/startup.sh

    3) You can install any version of EJB you require or your applications require..
     
  7. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Further more, you can use :

    /usr/sbin/stoptomcat
    /usr/sbin/starttomcat

    or

    /scripts/restartsrv_tomcat
     
  8. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    And when domain have asigned TOMCAT?
     
  9. viraj

    viraj Well-Known Member

    Joined:
    Sep 28, 2006
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    There's no need to remove any entries manually from the server if you terminate the account from WHM.
    All the entries are automatically removed from the httpd.conf & server.xml file during this termination process..
     
  10. vendeka

    vendeka Registered

    Joined:
    Aug 10, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    If you want to remove servlets w/o terminating an account:
    Code:
    /scripts/remservlets --domain=example.com
    
    • Removes <Host> container from server.xml
    • Removes cp_jkmount.conf for provided site
     
Loading...
Similar Threads - Deinstall JSP account
  1. Ivo Danic
    Replies:
    2
    Views:
    559

Share This Page