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.com<mailto: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
Bernales<kristine.berna...@macquarie.com<mailto: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.ORG<mailto:arslist@ARSLIST.ORG>] On Behalf Of Lyle 
> Taylor
> Sent: Friday, 7 August 2009 7:20 AM
> To: arslist@ARSLIST.ORG<mailto: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:arslist@ARSLIST.ORG<mailto:arslist@ARSLIST.ORG>] On Behalf Of Kaye 
> Bernales
> Sent: Thursday, August 06, 2009 2:44 AM
> To: arslist@ARSLIST.ORG<mailto: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
>

--
"A fool acts, regardless; knowing well that he is wrong. The ignoramus acts on 
only what he knows, but all that he knows.
The ignoramus may be saved, but the fool knows that he is doomed."

Bob Halstead

Reply via email to