HostOnNet Blog

Starting and Stoping Tomcat on Cpanel Server

Looking for Linux Server Admin or WordPress Expert? We can help.

On new server, i installed Tomcat through WHM. But i can’t restart tomcat from WHM. The cpanel script to restart tomcat /scripts/restartsrv_tomcat is also not working.

I found directly running tomcat startup file as user root will get the tomcat working.

To start Tomcat run

/usr/local/jakarta/tomcat/bin/startup.sh

To stop tomcat run

/usr/local/jakarta/tomcat/bin/shutdown.sh

Once you install servlet to a web site, it will show 404 error, you need to restart tomcat to get it working properly.

Posted in Cpanel Server. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.