+ Reply to Thread
Results 1 to 1 of 1
-
Administrator
- Join Date
- Aug 2009
- Posts
- 63
how to execute jsp in cpanel servers
To enable tomcat for a domain, you have to add the following lines inside the virtualhost directive of the particular domain.
<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>
And you have to add the following line in /usr/local/jakarta/jakarta-tomcat-5.0.28/conf/server.xml.
eg:-
Code:
<Host name="domainname.com" appBase="/home/username/public_html">
<Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>
</Host>
To restart Tomcat:
First goto the following directory,
/usr/local/jakarta/jakarta-tomcat-5.5.9/bin
./startup.sh
Logs:
Check the tomcat logs to make sure that it has been started fine. Please tail logs/catalina.out.
Add the jsp file in /home/username/public_html/


LinkBack URL
About LinkBacks



Reply With Quote