Help - Search - Members - Calendar
Full Version: tomcat 5
The Planet Forums > Control Panels > cPanel/WHM
chadi
How do I install complete Tomcat 5 on a server with CPANEL?
theuruguayan
I think this will help:

http://www.webhostingden.com/tcinstall.jsp

carlos
chadi
There is no directions there. icon_sad.gif
theuruguayan
QUOTE
Note these are done as is.
Unless you know Tomcat and Java you should not be using these.
We support the installer only not tomcat itself. These are binary installs, compiled on RHE3.0 server, work on RH9 as well.

Instructions -

Download link
tar -xzvf filename.tar.gz

cd TC5Install

./pre-install.sh <-- This checks that java virtual machine is working

./fix-my-jvm.sh <-- This attempts to correct any java issues

./install <-- This does the install (very basic as we are using binary and not src)

./tcinstall <-- This adds WEB-INF and such to your cpanel3-skel directory and allows for existing account setup NOTE: For existing accounts you also need to use the "Add Servlet" option in WHM.




This script will invoke the required script and add FULL tomcat/cPanel support to an existing user in one step
AS ROOT
cd /scripts
wget http://www.webhostingden.com/tcinstall
chmod 750 tcinstall


.
chadi
I attempted to install Tomcat on port 9080 but it didn't work (the link that it says to try after it says"the tomcat install is now complete".

So, it says after:

BEFORE YOU PROCEED ANY FURTHER

Please ensure that http://servername:9080 works

Well, I tried the link and it doesn't work icon_sad.gif

What am I doing wrong here?

Any help is truly appreciated. Thank you much.
theuruguayan
did you replace the servername with the name of your server... NOT the ip. the server name .. just like server1.domain.com:9080 or a working domain.

carlos
chadi
Yes I did.

Also, during my several attempts I got:

used port 9090 and redirect 9060 (even tried default 8443) both times got this message:

Scanning httpd.conf...X.X..X..X..X...X..X.X..X..X..X..X...X ..X..X..X..X..X..X..X..X..X..X..X..X..X..X.X...X.. X.X..X...X..X..X..X..X..X..X.X...X..X..X..X..X.X.. .X..X..X..X..X.X..X...X..X.X.
./bin/Tomcat.sh: line 76: kill: (4409) - No such process
/usr/sbin/stoptomcat: line 18: kill: tomcat: no such pid
Killed

Why?

I have to use 9090 because 8080 is already used for jdk
theuruguayan
that is good. the installer check if tomcat is not running already.

carlos
chadi
Also, I restarted tomcat via WHM and it told me:


tomcat has failed, please contact the sysadmin (result was "tomcat is not installed").
theuruguayan
try starting it from ssh.
see wht happends.
chadi
I did that many times:

root@server [~]# starttomcat
root@server [~]#

That's all happens.
chadi
Funny, I just got an email also:

Tomcat_JSP failed @ Sat Aug 28 12:17:53 2004. A restart was attempted automagicly.

But, the link still doesn't work.
chadi
To let you know how I edited the httpd.conf file, this is what it looks like:

# Example:
# LoadModule foo_module libexec/mod_foo.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule php4_module libexec/libphp4.so
LoadModule bwlimited_module libexec/mod_bwlimited.so
LoadModule bytes_log_module libexec/mod_log_bytes.so
LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so
LoadModule jk_module libexec/mod_jk.so
#LoadModule gzip_module libexec/mod_gzip.so

# Reconstruction of the complete module list from all available modules
# (static and shared ones) to achieve correct module execution order.
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
AddModule mod_jk.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c

AddModule mod_ssl.c

AddModule mod_frontpage.c
AddModule mod_php4.c
AddModule mod_bwlimited.c
AddModule mod_log_bytes.c
AddModule mod_auth_passthrough.c
#AddModule mod_gzip.c
Include "/usr/local/jakarta/tomcat/conf/Jk.conf
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On
Dave#
QUOTE
Originally posted by chadi
I did that many times:

root@server [~]# starttomcat
root@server [~]#

That's all happens.


why not debug the output

sh -x starttomcat
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.