Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Apache 2.2.4 does not start - no errors

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


jainabhay at att

Jan 15, 2007, 1:57 PM

Post #1 of 7 (1585 views)
Permalink
Apache 2.2.4 does not start - no errors

We are running on Tru64 Unix. Downloaded 2.2.4, and installed.
Just tried vanilla version and changed only the user/group and
ServerName in httpd.conf. When we start as
/usr/apache/bin/apachectl start, it just exists without
generating any error. Exit code form script is 0 and no
httpd process is running. What may be going on?
Thanks.


Owen.Boyle at swx

Jan 16, 2007, 12:04 AM

Post #2 of 7 (1457 views)
Permalink
RE: Apache 2.2.4 does not start - no errors [In reply to]

> -----Original Message-----
> From: Jain, Abhay K, INFOT [mailto:jainabhay [at] att]
> Sent: Monday, January 15, 2007 10:58 PM
> To: users [at] httpd
> Subject: [users [at] http] Apache 2.2.4 does not start - no errors
>
> We are running on Tru64 Unix. Downloaded 2.2.4, and installed.
> Just tried vanilla version and changed only the user/group and
> ServerName in httpd.conf. When we start as
> /usr/apache/bin/apachectl start, it just exists without
> generating any error. Exit code form script is 0 and no
> httpd process is running. What may be going on?
> Thanks.
>

- try running under truss or strace
- try starting directly (ie /usr/apache/bin/httpd)

what happens?

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.


This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


Owen.Boyle at swx

Jan 16, 2007, 12:07 AM

Post #3 of 7 (1470 views)
Permalink
RE: Apache 2.2.4 does not start - no errors [In reply to]

> -----Original Message-----
> From: Jain, Abhay K, INFOT [mailto:jainabhay [at] att]
> Sent: Monday, January 15, 2007 10:58 PM
> To: users [at] httpd
> Subject: [users [at] http] Apache 2.2.4 does not start - no errors
>
> We are running on Tru64 Unix. Downloaded 2.2.4, and installed.
> Just tried vanilla version and changed only the user/group and
> ServerName in httpd.conf. When we start as
> /usr/apache/bin/apachectl start, it just exists without
> generating any error.

Another thought... when you say "no errors" you mean "no errors to the
screen", right? But what's in the error log?

> Exit code form script is 0

No big surprise... apachectl is just a shell script that forks httpd. If
httpd fails, apachectl can still exit normally...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.


> and no
> httpd process is running. What may be going on?
> Thanks.
>


This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jainabhay at att

Jan 16, 2007, 6:12 AM

Post #4 of 7 (1459 views)
Permalink
RE: Apache 2.2.4 does not start - no errors [In reply to]

-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle [at] swx]
Sent: Tuesday, January 16, 2007 3:08 AM
To: users [at] httpd
Subject: RE: [users [at] http] Apache 2.2.4 does not start - no errors

> -----Original Message-----
> From: Jain, Abhay K, INFOT [mailto:jainabhay [at] att]
> Sent: Monday, January 15, 2007 10:58 PM
> To: users [at] httpd
> Subject: [users [at] http] Apache 2.2.4 does not start - no errors
>
> We are running on Tru64 Unix. Downloaded 2.2.4, and installed.
> Just tried vanilla version and changed only the user/group and
> ServerName in httpd.conf. When we start as
> /usr/apache/bin/apachectl start, it just exists without
> generating any error.

Another thought... when you say "no errors" you mean "no errors to the
screen", right? But what's in the error log?

> Exit code form script is 0

No big surprise... apachectl is just a shell script that forks httpd. If
httpd fails, apachectl can still exit normally...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.


> and no
> httpd process is running. What may be going on?
> Thanks.
>

Should have mentioned that we had tried starting
httpd directly and got same results.
Also there is nothing in the error log.
We had tried running with trace and last statement seem
to be fork(). There was a pid associated with fork().
Then next statement was exit(0).


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


krist.vanbesien at gmail

Jan 17, 2007, 1:59 AM

Post #5 of 7 (1465 views)
Permalink
Re: Apache 2.2.4 does not start - no errors [In reply to]

On 1/16/07, Jain, Abhay K, INFOT <jainabhay [at] att> wrote:

> We had tried running with trace and last statement seem
> to be fork(). There was a pid associated with fork().
> Then next statement was exit(0).

When tracing a program you have to make sure it traces child processes
too, otherwise you will see what happens after the fork. Which option
you need to give to trace on your OS I don't know, so consult the man
page.

On Solaris I use "truss -f" when tracing problems. The -f option tells
truss to follow children too.

One possible reason for your problem (I've seen this before) might be
the user and group directives in your httpd.conf. The default values
apache ships with (-1) is not suitable on some variants of Unix. Edit
your httpd.conf and make set the user and group to a real existing
user and group on your system. (nobody:nobody if exists will do fine,
but I usually create a apache user and www group).

Krist

--
krist.vanbesien [at] gmail
Bremgarten b. Bern, Switzerland
--
"...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation." (Comment on the Dilbert Blog)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


jainabhay at att

Jan 18, 2007, 6:52 AM

Post #6 of 7 (1474 views)
Permalink
RE: Apache 2.2.4 does not start - no errors [In reply to]

Found the following information from trace.

bind (4, 0x14002fee0=<2/INET, 80, 0.0.0.0>, 16) = 0

It seems there is an attempt to bind to address 0.0.0.0
instead to the IP address of the machine. /etc/hosts
file does contain mapping of name to IP address.

-----Original Message-----
From: Krist van Besien [mailto:krist.vanbesien [at] gmail]
Sent: Wednesday, January 17, 2007 4:59 AM
To: users [at] httpd
Subject: Re: [users [at] http] Apache 2.2.4 does not start - no errors

On 1/16/07, Jain, Abhay K, INFOT <jainabhay [at] att> wrote:

> We had tried running with trace and last statement seem
> to be fork(). There was a pid associated with fork().
> Then next statement was exit(0).

When tracing a program you have to make sure it traces child processes
too, otherwise you will see what happens after the fork. Which option
you need to give to trace on your OS I don't know, so consult the man
page.

On Solaris I use "truss -f" when tracing problems. The -f option tells
truss to follow children too.

One possible reason for your problem (I've seen this before) might be
the user and group directives in your httpd.conf. The default values
apache ships with (-1) is not suitable on some variants of Unix. Edit
your httpd.conf and make set the user and group to a real existing
user and group on your system. (nobody:nobody if exists will do fine,
but I usually create a apache user and www group).

Krist

--
krist.vanbesien [at] gmail
Bremgarten b. Bern, Switzerland

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


krist.vanbesien at gmail

Jan 18, 2007, 8:19 AM

Post #7 of 7 (1469 views)
Permalink
Re: Apache 2.2.4 does not start - no errors [In reply to]

On 1/18/07, Jain, Abhay K, INFOT <jainabhay [at] att> wrote:
> Found the following information from trace.
>
> bind (4, 0x14002fee0=<2/INET, 80, 0.0.0.0>, 16) = 0
>
> It seems there is an attempt to bind to address 0.0.0.0
> instead to the IP address of the machine. /etc/hosts
> file does contain mapping of name to IP address.

0.0.0.0 normally means "bind to anything". I don't think that's your
problem. Apache by default will listen on all interfaces. If a bind
fails this will give you an error message in your log.

That you don't even get an error log point to something more
fundamental. Have a look in your trace output for the lines where
apache opens its log files.

Krist


--
krist.vanbesien [at] gmail
Bremgarten b. Bern, Switzerland
--
"...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation." (Comment on the Dilbert Blog)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
" from the digest: users-digest-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.