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.

cPanel 11 & Tomcat command

Discussion in 'General Discussion' started by mehrdad abed, Feb 1, 2008.

  1. mehrdad abed

    mehrdad abed Well-Known Member

    Joined:
    Mar 18, 2006
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I've installed tomcat with apache using cPanel easyapache 3, I was wondering if someone could help me how i could do following activities in SSH :

    Restart tomcat service
    Stop,start tomcat service
    Status of tomcat service

    Give privilege to a user to use tomcat or not
    Remove a tomcat from a user

    Thanks,
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    The most efficient way of working with tomcat would be through ssh. Although you may be able restart tomcat fine via whm, sometimes it may be hit or miss.

    Only users whom you install servlets for will have access to java so this is not a global install. You will find "install servlets" in your whm. To remove tomcat for a user (which I doubt you would ever need to) you can modify httpd.conf and remove their servlets. Also run the distiller, etc so your changes are parsed and saved and then update. (basically read the top of httpd.conf for directions)

    Via ssh, cd into:
    /usr/local/jakarta/jakarta-tomcat-5.5.9/bin

    shutdown:
    sh shutdown.sh

    startup:
    sh startup.sh

    Sometimes it may be stubborn to shut down so check the processes and kill if needed.
     
Loading...

Share This Page