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.

Integration TomCat/Cpanel

Discussion in 'cPanel Developers' started by tauser, Oct 20, 2005.

  1. tauser

    tauser Registered

    Joined:
    Oct 2, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I need some help

    How can I install TomCat in Cpanel, so I can´t do it.
    When I try to install, TomCat did start service.

    My best regards, waiting some help.

    Tauser

    :confused:
     
  2. tauser

    tauser Registered

    Joined:
    Oct 2, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Note: these instructions is provided according Cpanel Tomcat Installer bugs on versions near WHM 10.6.0 cPanel 10.8.0-S21.


    Let's remove Tomcat and install it again.




    Table of contents [showhide]
    1 Checking everything is clean

    2 Installing tomcat

    3 If it fail while installing Tomcat on WHM: install hangs after license

    4 Fixing jsvc

    5 Making sure Tomcat is running and apache is restarted

    6 Each time you install Servlet on a domain

    7 Mapping .do

    Code:
    [edit]Checking everything is clean 
    /scripts/upcp --force
    cd /usr/local/apache/conf/
    mv workers2.properties workers2.properties.old
    mv workers.properties  workers.properties.old
    cd /usr/local/cpanel/modules-install/tomcat-Linux-i686
    ./uninstall
    rm -rf /usr/local/jdk1.5.0_02
    [edit]Installing tomcat 
    cd /usr/local/cpanel/modules-install/tomcat-Linux-i686
    ./install
    Copy and past tomcat root password.

    [edit]If it fail while installing Tomcat on WHM: install hangs after license
    Remove file installed is trying to replace:

    Code:
    rm -rf /usr/local/jdk1.5.0_02
    cd /usr/local/cpanel/modules-install/tomcat-Linux-i686
    ./install
    [edit]Fixing jsvc 
    We need to compile manually jsvc since Cpanel Tomcat installer are bugged while trying to compile it. 
    
    cd /usr/local/jakarta/tomcat/bin
    cd jsvc-src/
    ./configure
    make
    killall jsvc
    cp jsvc ../
    [edit]Making sure Tomcat is running and apache is restarted 
    /scripts/restartsrv_tomcat
    service httpd restart
    [edit]Each time you install Servlet on a domain
    After installing Servlet on WHM on some domain, if Tomcat doesn't open, try to restart it again.

    Sometimes Tomcat can broke install after adding Servlet on a domain by WHM. If it happen, just follow these instructions again - probably it will work.

    [edit]Mapping .do
    If you need .do: Edit /usr/local/apache/conf/httpd.conf and add a line inside domain VirtualHost:



    Code:
    <IfModule mod_jk.c>
       JkMount /*.do  ajp13
    </IfModule>
    Restart apache:

    service httpd restart
     

Share This Page