best hgh

Install tomcat in linux server WHM

1- WHM>> then easyapache then follow the step and select tomcat

or

you can run below scripts in SSH

/scripts/easyapache

then follow

after done you need to go to WHM >> install servlets>> then select the domain that you want to enable it to use tomcat and press install .

after done that you can test using below code

code should be .jsp for example test.jsp in your domain

alzwea.com/test.jsp

==============

<html>
<head>
<title>Hello from JSP</title>
<%!
String message = “Hello, World. From JSP test page Tomcat is running.”;
%>
</head>
<body>
<hr color=”#000000″ />
<center>
<h2><font color=”#3366cc”><%= message%></font></h2>
<h3><font color=”#0000ff”><%= new java.util.Date() %> </font></h3>
<hr color=”#000000″ />
</center>
</body>
</html>

==============

tomcat use for jsp, to make your website support jsp code

references

http://www.eukhost.com/forums/f15/how-install-enable-tomcat-account-whm-6447/

Thank you.

Leave a Reply