Re: How to verify if apache and tomcat are running?

2009-08-07 Thread Robert Halstead
One way to tell if apache or tomcat is running from outside the box would be
to telnet to port 80 or whatever port apache/tomcat is running on.  If you
get a handshake and prompt, then it's running.

On Thu, Aug 6, 2009 at 11:03 PM, Frank Caruso caruso.fr...@gmail.comwrote:

 When the Midtier installs it appends lines to the end of the
 httpd.conf file. Those lines tell it were to find the jk_mod module.
 Is it possible you have a corrupt version of that file? How was the
 jk_mod file built?

 On Fri, Aug 7, 2009 at 3:18 AM, Kaye
 Bernaleskristine.berna...@macquarie.com wrote:
  **
  Thanks!
 
  One more thing, while looking at logs (mid-tier installation) we found
 the
  warnings regarding a syntax error on http.conf.  We tried to start apache
  and ran the command apachectl start.  We got the error:
 
  httpd: Syntax error on line 409 of
  /opt2/mweb/server/apache2/conf/httpd.conf: API module structure
 'jk_module'
  in file /opt2/bmc/apache2/modules/mod_jk.so is garbled - expected
 signature
  41503232 but saw 41503230 - perhaps this is not an Apache module DSO, or
 was
  compiled for a different Apache version?
 
  Any idea how we can fix it? :)
 
 
 
  Thanks!
  Kaye
 
  
  From: Action Request System discussion list(ARSList)
  [mailto:arsl...@arslist.org] On Behalf Of Lyle Taylor
  Sent: Friday, 7 August 2009 7:20 AM
  To: arslist@ARSLIST.ORG
  Subject: Re: How to verify if apache and tomcat are running?
 
  **
 
  The fact that you’re getting that error means that Apache is up and
  running.  If Apache were down, your web browser would essentially tell
 you
  that it can’t connect to the server or can’t display the page (in the
 case
  of IE).  This error means that Apache is trying to pass the request on to
  the Tomcat server and is failing.  It may be that Tomcat is down.
 
 
 
  I usually verify that they are running by checking for the processes
 using
  the ps command.  A quick easy way to tell if Apache is up is to look for
 the
  httpd process by running the following command at the shell prompt:
 
 
 
  ps –ef | grep httpd
 
 
 
  If Apache is running, you should see multiple lines returned similar to
  this:
 
 
 
  root 23773 1  0 Jul31 ?00:00:00 /opt/apache/bin/httpd -k
  start
 
  nobody6509 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
  start
 
  nobody6510 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
  start
 
  nobody6511 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
  start
 
  nobody6512 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
  start
 
  nobody6513 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
  start
 
  user 19396 19247  0 17:18 pts/000:00:00 grep httpd
 
 
 
  Note the line highlighted in red – that’s the process running the grep
  command.  Ignore that line.
 
 
 
  If you see no lines returned (or just one that lists the grep command),
 then
  Apache is not running.  Tomcat is a little more tricky, because it’s a
 Java
  process.  I check for it by running the following command:
 
 
 
  ps –ef | grep java
 
 
 
  You should get back at least one line similar to the following:
 
 
 
  root 14160 1  0 Jul31 ?00:02:28
  /usr/java/jdk1.5.0_14/bin/java -Djava.awt.headless=true
  -Dsun.java2d.fontpath=/usr/java/jdk1.5.0_14/jre/lib/fonts
  -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 
 -Djava.util.logging.config.file=/usr/ar/apache-tomcat-5.5.17/conf/logging.properties
  -Djava.endorsed.dirs=/usr/ar/apache-tomcat-5.5.17/common/endorsed
 -classpath
 
 :/usr/ar/apache-tomcat-5.5.17/bin/bootstrap.jar:/usr/ar/apache-tomcat-5.5.17/bin/commons-logging-api.jar
  -Dcatalina.base=/usr/ar/apache-tomcat-5.5.17
  -Dcatalina.home=/usr/ar/apache-tomcat-5.5.17
  -Djava.io.tmpdir=/usr/ar/apache-tomcat-5.5.17/temp
  org.apache.catalina.startup.Bootstrap start
 
 
 
  Note the sections highlighted in red.  You can tell by looking at the
  options listed that this is for Tomcat.  If you don’t see that, then it’s
  not running.
 
 
 
  Hope that helps a bit.
 
 
 
  Lyle
 
 
 
  From: Action Request System discussion list(ARSList)
  [mailto:arsl...@arslist.org] On Behalf Of Kaye Bernales
  Sent: Thursday, August 06, 2009 2:44 AM
  To: arslist@ARSLIST.ORG
  Subject: How to verify if apache and tomcat are running?
 
 
 
  **
 
  Hi List,
 
 
 
  We just finished installing mid-tier 7.5 (Used patch 2).  We are trying
 to
  load the test page as described in doc.  but we got the error 503 Service
  Temporarily Unavailable.
 
 
 
  Service Temporarily Unavailable
 
  The server is temporarily unable to service your request due to
 maintenance
  downtime or capacity problems. Please try again later.
 
  Am a newbie on Unix and am wondering how I could verify if APache and
 Tomcat
  are running.  (And how to restart them if ever).
 
 
 
  I was able to log in to User Tool and Dev Studio so arserver is running.
 
 
 
  Remedy 

Re: How to verify if apache and tomcat are running?

2009-08-07 Thread Grooms, Frederick W
Since you say it is a Unix box you can always use wget to pull a default page 
for each as a test

Fred

From: Action Request System discussion list(ARSList) 
[mailto:arsl...@arslist.org] On Behalf Of Robert Halstead
Sent: Friday, August 07, 2009 4:20 PM
To: arslist@ARSLIST.ORG
Subject: Re: How to verify if apache and tomcat are running?

** One way to tell if apache or tomcat is running from outside the box would be 
to telnet to port 80 or whatever port apache/tomcat is running on.  If you get 
a handshake and prompt, then it's running.
On Thu, Aug 6, 2009 at 11:03 PM, Frank Caruso 
caruso.fr...@gmail.commailto:caruso.fr...@gmail.com wrote:
When the Midtier installs it appends lines to the end of the
httpd.conf file. Those lines tell it were to find the jk_mod module.
Is it possible you have a corrupt version of that file? How was the
jk_mod file built?

On Fri, Aug 7, 2009 at 3:18 AM, Kaye
Bernaleskristine.berna...@macquarie.commailto:kristine.berna...@macquarie.com
 wrote:
 **
 Thanks!

 One more thing, while looking at logs (mid-tier installation) we found the
 warnings regarding a syntax error on http.conf.  We tried to start apache
 and ran the command apachectl start.  We got the error:

 httpd: Syntax error on line 409 of
 /opt2/mweb/server/apache2/conf/httpd.conf: API module structure 'jk_module'
 in file /opt2/bmc/apache2/modules/mod_jk.so is garbled - expected signature
 41503232 but saw 41503230 - perhaps this is not an Apache module DSO, or was
 compiled for a different Apache version?

 Any idea how we can fix it? :)



 Thanks!
 Kaye

 
 From: Action Request System discussion list(ARSList)
 [mailto:arslist@ARSLIST.ORGmailto:arslist@ARSLIST.ORG] On Behalf Of Lyle 
 Taylor
 Sent: Friday, 7 August 2009 7:20 AM
 To: arslist@ARSLIST.ORGmailto:arslist@ARSLIST.ORG
 Subject: Re: How to verify if apache and tomcat are running?

 **

 The fact that you’re getting that error means that Apache is up and
 running.  If Apache were down, your web browser would essentially tell you
 that it can’t connect to the server or can’t display the page (in the case
 of IE).  This error means that Apache is trying to pass the request on to
 the Tomcat server and is failing.  It may be that Tomcat is down.



 I usually verify that they are running by checking for the processes using
 the ps command.  A quick easy way to tell if Apache is up is to look for the
 httpd process by running the following command at the shell prompt:



 ps –ef | grep httpd



 If Apache is running, you should see multiple lines returned similar to
 this:



 root 23773 1  0 Jul31 ?00:00:00 /opt/apache/bin/httpd -k
 start

 nobody6509 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
 start

 nobody6510 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
 start

 nobody6511 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
 start

 nobody6512 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
 start

 nobody6513 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k
 start

 user 19396 19247  0 17:18 pts/000:00:00 grep httpd



 Note the line highlighted in red – that’s the process running the grep
 command.  Ignore that line.



 If you see no lines returned (or just one that lists the grep command), then
 Apache is not running.  Tomcat is a little more tricky, because it’s a Java
 process.  I check for it by running the following command:



 ps –ef | grep java



 You should get back at least one line similar to the following:

 root 14160 1  0 Jul31 ?00:02:28
 /usr/java/jdk1.5.0_14/bin/java -Djava.awt.headless=true
 -Dsun.java2d.fontpath=/usr/java/jdk1.5.0_14/jre/lib/fonts
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 -Djava.util.logging.config.file=/usr/ar/apache-tomcat-5.5.17/conf/logging.properties
 -Djava.endorsed.dirs=/usr/ar/apache-tomcat-5.5.17/common/endorsed -classpath
 :/usr/ar/apache-tomcat-5.5.17/bin/bootstrap.jar:/usr/ar/apache-tomcat-5.5.17/bin/commons-logging-api.jar
 -Dcatalina.base=/usr/ar/apache-tomcat-5.5.17
 -Dcatalina.home=/usr/ar/apache-tomcat-5.5.17
 -Djava.io.tmpdir=/usr/ar/apache-tomcat-5.5.17/temp
 org.apache.catalina.startup.Bootstrap start

 Note the sections highlighted in red.  You can tell by looking at the
 options listed that this is for Tomcat.  If you don’t see that, then it’s
 not running.

 Hope that helps a bit.

 Lyle


 From: Action Request System discussion list(ARSList)
 [mailto:arslist@ARSLIST.ORGmailto:arslist@ARSLIST.ORG] On Behalf Of Kaye 
 Bernales
 Sent: Thursday, August 06, 2009 2:44 AM
 To: arslist@ARSLIST.ORGmailto:arslist@ARSLIST.ORG
 Subject: How to verify if apache and tomcat are running?

 Hi List,

 We just finished installing mid-tier 7.5 (Used patch 2).  We are trying to
 load the test page as described in doc.  but we got the error 503 Service
 Temporarily Unavailable.

 Service Temporarily Unavailable

 The server is temporarily 

Re: How to verify if apache and tomcat are running?

2009-08-06 Thread Lyle Taylor
The fact that you're getting that error means that Apache is up and running.  
If Apache were down, your web browser would essentially tell you that it can't 
connect to the server or can't display the page (in the case of IE).  This 
error means that Apache is trying to pass the request on to the Tomcat server 
and is failing.  It may be that Tomcat is down.

I usually verify that they are running by checking for the processes using the 
ps command.  A quick easy way to tell if Apache is up is to look for the httpd 
process by running the following command at the shell prompt:

ps -ef | grep httpd

If Apache is running, you should see multiple lines returned similar to this:

root 23773 1  0 Jul31 ?00:00:00 /opt/apache/bin/httpd -k start
nobody6509 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k start
nobody6510 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k start
nobody6511 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k start
nobody6512 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k start
nobody6513 23773  0 04:15 ?00:00:00 /opt/apache/bin/httpd -k start
user 19396 19247  0 17:18 pts/000:00:00 grep httpd

Note the line highlighted in red - that's the process running the grep command. 
 Ignore that line.

If you see no lines returned (or just one that lists the grep command), then 
Apache is not running.  Tomcat is a little more tricky, because it's a Java 
process.  I check for it by running the following command:

ps -ef | grep java

You should get back at least one line similar to the following:

root 14160 1  0 Jul31 ?00:02:28 /usr/java/jdk1.5.0_14/bin/java 
-Djava.awt.headless=true 
-Dsun.java2d.fontpath=/usr/java/jdk1.5.0_14/jre/lib/fonts 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=/usr/ar/apache-tomcat-5.5.17/conf/logging.properties
 -Djava.endorsed.dirs=/usr/ar/apache-tomcat-5.5.17/common/endorsed -classpath 
:/usr/ar/apache-tomcat-5.5.17/bin/bootstrap.jar:/usr/ar/apache-tomcat-5.5.17/bin/commons-logging-api.jar
 -Dcatalina.base=/usr/ar/apache-tomcat-5.5.17 
-Dcatalina.home=/usr/ar/apache-tomcat-5.5.17 
-Djava.io.tmpdir=/usr/ar/apache-tomcat-5.5.17/temp 
org.apache.catalina.startup.Bootstrap start

Note the sections highlighted in red.  You can tell by looking at the options 
listed that this is for Tomcat.  If you don't see that, then it's not running.

Hope that helps a bit.

Lyle

From: Action Request System discussion list(ARSList) 
[mailto:arsl...@arslist.org] On Behalf Of Kaye Bernales
Sent: Thursday, August 06, 2009 2:44 AM
To: arslist@ARSLIST.ORG
Subject: How to verify if apache and tomcat are running?

**
Hi List,

We just finished installing mid-tier 7.5 (Used patch 2).  We are trying to load 
the test page as described in doc.  but we got the error 503 Service 
Temporarily Unavailable.

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance 
downtime or capacity problems. Please try again later.
Am a newbie on Unix and am wondering how I could verify if APache and Tomcat 
are running.  (And how to restart them if ever).

I was able to log in to User Tool and Dev Studio so arserver is running.

Remedy Version: 7.5 Patch 2
Platform: UNIX (Solaris)
DB: Sybase

Thanks!
Kaye

NOTICE

The information contained in this email is confidential. If you are not the 
intended recipient, you must not disclose or use the information in this email 
in any way. If you received it in error, please tell us immediately by return 
email and delete the document. We do not guarantee the integrity of any e-mails 
or attached files and are not responsible for any changes made to them by any 
other person.


_Platinum Sponsor: rmisoluti...@verizon.net ARSlist: Where the Answers Are_


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.



___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are


Re: How to verify if apache and tomcat are running?

2009-08-06 Thread Frank Caruso
When the Midtier installs it appends lines to the end of the
httpd.conf file. Those lines tell it were to find the jk_mod module.
Is it possible you have a corrupt version of that file? How was the
jk_mod file built?

On Fri, Aug 7, 2009 at 3:18 AM, Kaye
Bernaleskristine.berna...@macquarie.com wrote:
 **
 Thanks!

 One more thing, while looking at logs (mid-tier installation) we found the
 warnings regarding a syntax error on http.conf.  We tried to start apache
 and ran the command apachectl start.  We got the error:

 httpd: Syntax error on line 409 of
 /opt2/mweb/server/apache2/conf/httpd.conf: API module structure 'jk_module'
 in file /opt2/bmc/apache2/modules/mod_jk.so is garbled - expected signature
 41503232 but saw 41503230 - perhaps this is not an Apache module DSO, or was
 compiled for a different Apache version?

 Any idea how we can fix it? :)



 Thanks!
 Kaye

 
 From: Action Request System discussion list(ARSList)
 [mailto:arsl...@arslist.org] On Behalf Of Lyle Taylor
 Sent: Friday, 7 August 2009 7:20 AM
 To: arslist@ARSLIST.ORG
 Subject: Re: How to verify if apache and tomcat are running?

 **

 The fact that you’re getting that error means that Apache is up and
 running.  If Apache were down, your web browser would essentially tell you
 that it can’t connect to the server or can’t display the page (in the case
 of IE).  This error means that Apache is trying to pass the request on to
 the Tomcat server and is failing.  It may be that Tomcat is down.



 I usually verify that they are running by checking for the processes using
 the ps command.  A quick easy way to tell if Apache is up is to look for the
 httpd process by running the following command at the shell prompt:



 ps –ef | grep httpd



 If Apache is running, you should see multiple lines returned similar to
 this:



 root 23773 1  0 Jul31 ?    00:00:00 /opt/apache/bin/httpd -k
 start

 nobody    6509 23773  0 04:15 ?    00:00:00 /opt/apache/bin/httpd -k
 start

 nobody    6510 23773  0 04:15 ?    00:00:00 /opt/apache/bin/httpd -k
 start

 nobody    6511 23773  0 04:15 ?    00:00:00 /opt/apache/bin/httpd -k
 start

 nobody    6512 23773  0 04:15 ?    00:00:00 /opt/apache/bin/httpd -k
 start

 nobody    6513 23773  0 04:15 ?    00:00:00 /opt/apache/bin/httpd -k
 start

 user     19396 19247  0 17:18 pts/0    00:00:00 grep httpd



 Note the line highlighted in red – that’s the process running the grep
 command.  Ignore that line.



 If you see no lines returned (or just one that lists the grep command), then
 Apache is not running.  Tomcat is a little more tricky, because it’s a Java
 process.  I check for it by running the following command:



 ps –ef | grep java



 You should get back at least one line similar to the following:



 root 14160 1  0 Jul31 ?    00:02:28
 /usr/java/jdk1.5.0_14/bin/java -Djava.awt.headless=true
 -Dsun.java2d.fontpath=/usr/java/jdk1.5.0_14/jre/lib/fonts
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 -Djava.util.logging.config.file=/usr/ar/apache-tomcat-5.5.17/conf/logging.properties
 -Djava.endorsed.dirs=/usr/ar/apache-tomcat-5.5.17/common/endorsed -classpath
 :/usr/ar/apache-tomcat-5.5.17/bin/bootstrap.jar:/usr/ar/apache-tomcat-5.5.17/bin/commons-logging-api.jar
 -Dcatalina.base=/usr/ar/apache-tomcat-5.5.17
 -Dcatalina.home=/usr/ar/apache-tomcat-5.5.17
 -Djava.io.tmpdir=/usr/ar/apache-tomcat-5.5.17/temp
 org.apache.catalina.startup.Bootstrap start



 Note the sections highlighted in red.  You can tell by looking at the
 options listed that this is for Tomcat.  If you don’t see that, then it’s
 not running.



 Hope that helps a bit.



 Lyle



 From: Action Request System discussion list(ARSList)
 [mailto:arsl...@arslist.org] On Behalf Of Kaye Bernales
 Sent: Thursday, August 06, 2009 2:44 AM
 To: arslist@ARSLIST.ORG
 Subject: How to verify if apache and tomcat are running?



 **

 Hi List,



 We just finished installing mid-tier 7.5 (Used patch 2).  We are trying to
 load the test page as described in doc.  but we got the error 503 Service
 Temporarily Unavailable.



 Service Temporarily Unavailable

 The server is temporarily unable to service your request due to maintenance
 downtime or capacity problems. Please try again later.

 Am a newbie on Unix and am wondering how I could verify if APache and Tomcat
 are running.  (And how to restart them if ever).



 I was able to log in to User Tool and Dev Studio so arserver is running.



 Remedy Version: 7.5 Patch 2

 Platform: UNIX (Solaris)

 DB: Sybase



 Thanks!
 Kaye

 NOTICE

 The information contained in this email is confidential. If you are not the
 intended recipient, you must not disclose or use the information in this
 email in any way. If you received it in error, please tell us immediately by
 return email and delete the document. We do not guarantee the integrity of
 any e-mails or attached files and are not responsible for any