casey

Well-Known Member
Jan 17, 2003
2,288
0
191
I asked my provider about installing JSP on my cPanel/WHM dedicated server, and the response I received was:

&jsp comes in the form of tomcat which if you install it will cause your server to crash all the time (its very buggy)&

Is this true? Has anybody successfully installed jsp and not experienced difficulties with it?
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
That's great to hear. Do you see any reasons that it might cause a server to crash? I'm brand new to the hosting business, so I don't know very much. I know I'd like to offer JSP, but I also know that I don't want my server to crash...
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Server crash? no.

Problems with response? sometimes, though rare.

Trick? Stick with 4.0.3 do not use 4.1

If never done it - have someone who has or get good guidance.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Thanks for the info and your advice.
Unfortunately, I don't know anyone who has experience, and my providers told me they wouldn't do it.

However, I'm just starting out, so even if it crashes there won't be any sites on there to worry about. All I have to do is worry about getting it stabilized once it's been installed...

I guess I'll go with 4.0.3

When you say problems with response, does that mean server-wide response or just those pages? Sorry for the dumb questions...:p
 

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
Atlanta, GA
The Tomcat install doesn't cause the server to crash. Poorly written code by your customers, however, is another story. It's very easy for a Java newbie to write JSP/Servlets with memory leaks and other resource hogs, so if you don't know much about Tomcat and Java, you'd be best to stay away. It's not like offering ASP, Perl, or PHP.

Jaz
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
I've seen some hosts charging extra for JSP/Java servlets. Is there some way to turn it on and off for certain customers?
 

orca

Well-Known Member
Sep 23, 2002
75
0
156
Switzerland
In WHM, you can select which sites can support jsp or not. It also suggests that you don't have more than 25 or so sites using jsp on one server.
 

Website Rob

Well-Known Member
Mar 23, 2002
1,501
1
318
Alberta, Canada
cPanel Access Level
Root Administrator
Originally posted by orca
In WHM, you can select which sites can support jsp or not. It also suggests that you don't have more than 25 or so sites using jsp on one server.
Can you give a hint as to where, in WHM, that would be?
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
If Tomcat is installed correctly, you should have an Option in WHM called Plugins with a menu pick "Install Servlets" just before the Transers option and past Account Functions.

Now note that this allows to install NOT uninstall.

Uninstalling must be done manually.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Where is DirIndex? Is it supposed to be inside httpd.conf?
I can't find it...I did a search for it using control-w, but to no avail. Is it perhaps inside the .htaccess file?
 

Ajo

Registered
Feb 22, 2003
2
0
151
Tomcat 4.1 seems to work fine, HOWEVER... with the installer comes mod_jk2 instead of mod_jk.

mod_jk2 WILL NOT WORK PROPERLY with APACHE 1.3.27, particularly with index.jsp files, etc. mod_jk should be used with APACHE 1.x

Why they included mod_jk2 is beyond me. Nice idea, I guess, however mod_jk2 is primarily being written for Apache 2