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.

Remove Tomcat

Discussion in 'General Discussion' started by greengiant, Sep 3, 2003.

  1. greengiant

    greengiant Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    I install Tomcat 4 which i could not get to work the way i wanted. Now I am trying to Remove it, and I have delete all teh tomcat files i could find, i removed it from the S99local startup script. The "Install Servlets" option still shows up in the WHM, and WHM keeps trying to start the serivce, which is no longer there, and is emailing me errors. How do i fix this?

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Make sure that you remove the relevant file from /etc/chkserv.d/ and then service chkserv restart

    Also make sure that you remove all of the lines from within your apache config file.

    cPanel.net Support Ticket Number:
     
  3. greengiant

    greengiant Well-Known Member

    Joined:
    Aug 31, 2003
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    That stoppped the restarting but how do i remvoe it theese tow options from WHM?

    Restart Service -> "Servlet Server (tomcat)"
    Plugins -> "Install Servlets"

    cPanel.net Support Ticket Number:
     
  4. hostit1

    hostit1 Well-Known Member

    Joined:
    Jul 24, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    0
    This is what I did to remove Tomcat. It seems to work

    First, if you already have another version of Tomcat on your server, clean it out. Delete these files:
    in /usr/local
    jakarta
    in /
    jsp-install-4 (or whatever version you have)

    Then edit httpd.conf and remove all instances of

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

    The below is important too . . . contributed from Casey

    cd /etc/init.d
    ./chkservd stop
    cd /etc/chkserv.d
    rm tomcat
    cd /var/run/chkservd
    rm tomcat
    cd /etc/init.d
    ./chkservd start
    vi or pico /etc/rc.d/rc.local
    remove /usr/sbin/starttomcat
     
    #4 hostit1, Nov 18, 2003
    Last edited: Nov 24, 2003
Loading...

Share This Page