Re: Tomcat/ Apache startup

2003-06-06 Thread John Turner
What is your script trying to do?  Start all of them?  That's not the 
optimal configuration.

You should really have 3 scripts, one for each.  Start them up in sequence 
in rc3-5.d.  MySQL, then Tomcat, then Apache.

Connection refused generally means that something is already started on 
that portdo you know which service is returning the connection refused 
message?

John

On Fri, 6 Jun 2003 14:22:42 -0500, David Nelson [EMAIL PROTECTED] 
ind.com wrote:

I'm sure this is cake to this list so here goes nothing.

I really need some help.  I've followed John Turners install instructions 
for tomcat 4.1.18 on RedHat integrating with Apache 2 and all works like 
a champ.

Unfortunately, now that I'm trying to integrate a startup script for 
Tomcat, Apache and MySQL, things aren't going so well.  The app returns 
connection refused.  I'm fairly certain the startup scripts are 
incorrect.

Can someone point me in the right direction here?  I've been to no 
telling how many sites and googling and I can not figure this one out.

Thanks in advance!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat/ Apache startup

2003-06-06 Thread David Nelson
Hello John,

Thanks for getting back to me.  Regarding other processes, I'm pretty certain nothing 
is being started just because I installed Apache, tomcat and MySQL from source 
removing the apache that comes with RedHat.  Previously I started those processes 
manually at prompt.

Regarding scripts, here's what I have:
etc/rc.d/init.d/tomcat
etc/rc.d/init.d/apache
etc/rc.d/init.d/mysql

here are the scripts:  for credit purposes, these originated at
http://www.raibledesigns.com/tomcat/boot-howto.html
#TOMCAT
#!/bin/bash
#
# apache
#
# chkconfig: 
# description:  Start up the Tomcat servlet engine.

# Source function library.
. /etc/init.d/functions

RETVAL=$?
TOMCATHOME=$TOMCAT_HOME

case $1 in
 start)
if [ -f $TOMCATHOME/bin/startup.sh ];
  then
echo $Starting Tomcat
/bin/su noone $TOMCATHOME/bin/startup.sh
fi
;;
 stop)
if [ -f $TOMCATHOME/bin/shutdown.sh ];
  then
echo $Stopping Tomcat
/bin/su noone $TOMCATHOME/bin/shutdown.sh
fi
;;
 *)
echo $Usage: $0 {start|stop}
exit 1
;;
esac

exit $RETVAL

-
Apache:
#!/bin/bash
#
# apache
#
# chkconfig: 
# description:  Start up the Apache web server.

# Source function library.
. /etc/init.d/functions

RETVAL=$?
APACHEHOME=$APACHE_HOME

case $1 in
 start)
if [ -f $APACHEHOME/bin/apachectl ]; then
echo $Starting Apache
$APACHEHOME/bin/apachectl start
fi
;;
 stop)
if [ -f $APACHEHOME/bin/apachectl ]; then
echo $Stopping Apache
$APACHEHOME/bin/apachectl stop
fi
;;
 *)
echo $Usage: $0 {start|stop}
exit 1
;;
esac

exit $RETVAL

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 2:37 PM
To: Tomcat Users List
Subject: Re: Tomcat/ Apache startup



What is your script trying to do?  Start all of them?  That's not the 
optimal configuration.

You should really have 3 scripts, one for each.  Start them up in sequence 
in rc3-5.d.  MySQL, then Tomcat, then Apache.

Connection refused generally means that something is already started on 
that portdo you know which service is returning the connection refused 
message?

John

On Fri, 6 Jun 2003 14:22:42 -0500, David Nelson [EMAIL PROTECTED] 
ind.com wrote:

 I'm sure this is cake to this list so here goes nothing.

 I really need some help.  I've followed John Turners install instructions 
 for tomcat 4.1.18 on RedHat integrating with Apache 2 and all works like 
 a champ.

 Unfortunately, now that I'm trying to integrate a startup script for 
 Tomcat, Apache and MySQL, things aren't going so well.  The app returns 
 connection refused.  I'm fairly certain the startup scripts are 
 incorrect.

 Can someone point me in the right direction here?  I've been to no 
 telling how many sites and googling and I can not figure this one out.

 Thanks in advance!

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat/ Apache startup

2003-06-06 Thread Mark Eggers
David,

I don't know about Redhat 7.3, but the default
configuration in Redhat 9 restricts user noone and
nobody so that network access does not work.

I am using similar scripts, but installed Tomcat from
the binaries and made two users.

1. tomcat is a normal user and has rw access to the
/home/tomcat directory structure.

2. tomcat-op is a user in the same group, but only has
write access to the appropriate areas (temp, work,
logs - plus some other logging for specific apps).

This seems to work reasonably well, although I could
probably tie down the security in a better fashion.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat/ Apache startup

2003-06-06 Thread John Turner
My guess is that Tomcat isn't starting, because the convention is to use 
CATALINA_HOME, not TOMCAT_HOME, which means that

TOMCATHOME=$TOMCAT_HOME

will make TOMCATHOME null.  Unless, of course, you have an environment 
variable called TOMCAT_HOME set somewhere.

Matt (Raible), if you're reading this thread, can you shed some light on 
the scripts for David?

John

On Fri, 6 Jun 2003 14:48:56 -0500, David Nelson [EMAIL PROTECTED] 
ind.com wrote:

Hello John,

Thanks for getting back to me.  Regarding other processes, I'm pretty 
certain nothing is being started just because I installed Apache, tomcat 
and MySQL from source removing the apache that comes with RedHat.  
Previously I started those processes manually at prompt.

Regarding scripts, here's what I have:
etc/rc.d/init.d/tomcat
etc/rc.d/init.d/apache
etc/rc.d/init.d/mysql
here are the scripts:  for credit purposes, these originated at
http://www.raibledesigns.com/tomcat/boot-howto.html
#TOMCAT
#!/bin/bash
#
# apache#
# chkconfig: # description: Start up the Tomcat servlet engine.
# Source function library.
. /etc/init.d/functions
RETVAL=$?
TOMCATHOME=$TOMCAT_HOME
case $1 in
start)
if [ -f $TOMCATHOME/bin/startup.sh ];
then
echo $Starting Tomcat
/bin/su noone $TOMCATHOME/bin/startup.sh
fi
;;
stop)
if [ -f $TOMCATHOME/bin/shutdown.sh ];
then
echo $Stopping Tomcat
/bin/su noone $TOMCATHOME/bin/shutdown.sh
fi
;;
*)
echo $Usage: $0 {start|stop}
exit 1
;;
esac
exit $RETVAL

-
Apache:
#!/bin/bash
#
# apache#
# chkconfig: # description: Start up the Apache web server.
# Source function library.
. /etc/init.d/functions
RETVAL=$?
APACHEHOME=$APACHE_HOME
case $1 in
start)
if [ -f $APACHEHOME/bin/apachectl ]; then
echo $Starting Apache
$APACHEHOME/bin/apachectl start
fi
;;
stop)
if [ -f $APACHEHOME/bin/apachectl ]; then
echo $Stopping Apache
$APACHEHOME/bin/apachectl stop
fi
;;
*)
echo $Usage: $0 {start|stop}
exit 1
;;
esac
exit $RETVAL

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 2:37 PM
To: Tomcat Users List
Subject: Re: Tomcat/ Apache startup


What is your script trying to do?  Start all of them?  That's not the 
optimal configuration.

You should really have 3 scripts, one for each.  Start them up in 
sequence in rc3-5.d.  MySQL, then Tomcat, then Apache.

Connection refused generally means that something is already started on 
that portdo you know which service is returning the connection 
refused message?

John

On Fri, 6 Jun 2003 14:22:42 -0500, David Nelson [EMAIL PROTECTED] 
ind.com wrote:

I'm sure this is cake to this list so here goes nothing.

I really need some help.  I've followed John Turners install 
instructions for tomcat 4.1.18 on RedHat integrating with Apache 2 and 
all works like a champ.

Unfortunately, now that I'm trying to integrate a startup script for 
Tomcat, Apache and MySQL, things aren't going so well.  The app returns 
connection refused.  I'm fairly certain the startup scripts are 
incorrect.

Can someone point me in the right direction here?  I've been to no 
telling how many sites and googling and I can not figure this one out.

Thanks in advance!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat/ Apache startup

2003-06-06 Thread David Nelson
Hello Mark,

Yes I set a tomcat account chown -R $TOMCAT_HOME/bin and replaced the noone with 
Tomcat.  Still nothing.  I'm a real newbie at trying to administer this unit so I 
really apprec the help.

-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 3:01 PM
To: Tomcat Users List
Subject: RE: Tomcat/ Apache startup


David,

I don't know about Redhat 7.3, but the default
configuration in Redhat 9 restricts user noone and
nobody so that network access does not work.

I am using similar scripts, but installed Tomcat from
the binaries and made two users.

1. tomcat is a normal user and has rw access to the
/home/tomcat directory structure.

2. tomcat-op is a user in the same group, but only has
write access to the appropriate areas (temp, work,
logs - plus some other logging for specific apps).

This seems to work reasonably well, although I could
probably tie down the security in a better fashion.

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat/ Apache startup

2003-06-06 Thread David Nelson
I have both a TOMCAT_HOME and CATALINA_HOME env var.  The TOMCAT var was left over 
from my first try at install and I just kept it around.

I think my problem may lie in the way I'm trying to set permissions for my 'tomcat' 
user.  The user defiantly exists as I'm using it elsewhere but maybe it doesn't have 
rights to be used in the start-up script.  

Incidentally the 'MySQL' user is setup the same as 'tomcat' and neither scripts work 
when replacing the 'noone'.  What specific syntax and lines should I use to set the 
permissions at the shell prompt?

-Dave

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 3:02 PM
To: Tomcat Users List
Subject: Re: Tomcat/ Apache startup



My guess is that Tomcat isn't starting, because the convention is to use 
CATALINA_HOME, not TOMCAT_HOME, which means that

TOMCATHOME=$TOMCAT_HOME

will make TOMCATHOME null.  Unless, of course, you have an environment 
variable called TOMCAT_HOME set somewhere.

Matt (Raible), if you're reading this thread, can you shed some light on 
the scripts for David?

John

On Fri, 6 Jun 2003 14:48:56 -0500, David Nelson [EMAIL PROTECTED] 
ind.com wrote:

 Hello John,

 Thanks for getting back to me.  Regarding other processes, I'm pretty 
 certain nothing is being started just because I installed Apache, tomcat 
 and MySQL from source removing the apache that comes with RedHat.  
 Previously I started those processes manually at prompt.

 Regarding scripts, here's what I have:
 etc/rc.d/init.d/tomcat
 etc/rc.d/init.d/apache
 etc/rc.d/init.d/mysql

 here are the scripts:  for credit purposes, these originated at
 http://www.raibledesigns.com/tomcat/boot-howto.html
 #TOMCAT
 #!/bin/bash
 #
 # apache#
 # chkconfig: # description:   Start up the Tomcat servlet engine.

 # Source function library.
 . /etc/init.d/functions

 RETVAL=$?
 TOMCATHOME=$TOMCAT_HOME

 case $1 in
 start)
 if [ -f $TOMCATHOME/bin/startup.sh ];
 then
   echo $Starting Tomcat
 /bin/su noone $TOMCATHOME/bin/startup.sh
 fi
   ;;
 stop)
 if [ -f $TOMCATHOME/bin/shutdown.sh ];
 then
   echo $Stopping Tomcat
 /bin/su noone $TOMCATHOME/bin/shutdown.sh
 fi
   ;;
 *)
   echo $Usage: $0 {start|stop}
   exit 1
   ;;
 esac

 exit $RETVAL

 -
 Apache:
 #!/bin/bash
 #
 # apache#
 # chkconfig: # description:   Start up the Apache web server.

 # Source function library.
 . /etc/init.d/functions

 RETVAL=$?
 APACHEHOME=$APACHE_HOME

 case $1 in
 start)
   if [ -f $APACHEHOME/bin/apachectl ]; then
   echo $Starting Apache
 $APACHEHOME/bin/apachectl start
 fi
   ;;
 stop)
   if [ -f $APACHEHOME/bin/apachectl ]; then
   echo $Stopping Apache
 $APACHEHOME/bin/apachectl stop
 fi
   ;;
 *)
   echo $Usage: $0 {start|stop}
   exit 1
   ;;
 esac

 exit $RETVAL

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 06, 2003 2:37 PM
 To: Tomcat Users List
 Subject: Re: Tomcat/ Apache startup



 What is your script trying to do?  Start all of them?  That's not the 
 optimal configuration.

 You should really have 3 scripts, one for each.  Start them up in 
 sequence in rc3-5.d.  MySQL, then Tomcat, then Apache.

 Connection refused generally means that something is already started on 
 that portdo you know which service is returning the connection 
 refused message?

 John

 On Fri, 6 Jun 2003 14:22:42 -0500, David Nelson [EMAIL PROTECTED] 
 ind.com wrote:

 I'm sure this is cake to this list so here goes nothing.

 I really need some help.  I've followed John Turners install 
 instructions for tomcat 4.1.18 on RedHat integrating with Apache 2 and 
 all works like a champ.

 Unfortunately, now that I'm trying to integrate a startup script for 
 Tomcat, Apache and MySQL, things aren't going so well.  The app returns 
 connection refused.  I'm fairly certain the startup scripts are 
 incorrect.

 Can someone point me in the right direction here?  I've been to no 
 telling how many sites and googling and I can not figure this one out.

 Thanks in advance!

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]








-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat/ Apache startup

2003-06-06 Thread Mark Eggers
David,

I am using the scripts from:

http://daydream.stanford.edu/tomcat/install_web_services.html

I modified them slightly, including using sudo -u
tomcat-ops for the Tomcat startup script.

These scripts take care of setting the appropriate
environment variables before starting, stopping, or
restarting Tomcat.

HTH

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat/ Apache startup

2003-06-06 Thread David Nelson
Mark

I've converted scripts over to those but I still get nothing.  Connection refused 
attempting to connect to localhost:8080.  Anything else at all?  How did you apply 
permissions to your user accounts?  I'm probably missing something in the syntax.

-Dave

-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 3:32 PM
To: Tomcat Users List
Subject: RE: Tomcat/ Apache startup


David,

I am using the scripts from:

http://daydream.stanford.edu/tomcat/install_web_services.html

I modified them slightly, including using sudo -u
tomcat-ops for the Tomcat startup script.

These scripts take care of setting the appropriate
environment variables before starting, stopping, or
restarting Tomcat.

HTH

/mde/
just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]