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

Mailing List Archive: Apache: Users

httpd not running

 

 

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


mike at petroleumdata

Dec 7, 2001, 11:58 AM

Post #1 of 10 (244 views)
Permalink
httpd not running

Hi, I am kind of new to Apache compiling, but not to Linux. Today I
downloaded Apache 1.3.22 and PHP 4.0.6 and compiled Apache with PHP in as a
static module. These are the options I used for Apache:
./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd/conf \
--enable-module=all --disable-rule=IRIXN32 --disable-rule=IRIXNIS \
--without-support --without-confadjust
The options I used for PHP:
./configure --with-mysql --with-apache=../apache_1.3.22 --enable-track-vars

Anyway, it compiled fine, but when I run httpd, it overwrites the pid file
but does not start. The only thing in apache's error log is "pid file
overwritten". No error message, just httpd doesn't start and doesn't do
anything. If I mess up the httpd.conf file it will tell me there are errors
in it, but if the config file is OK and it should work, it will just not
start. apachectl does the same thing, it says it starts apache but when I
look at running processes, it isn't running.
I am using Linux Mandrake 7.0 but I upgraded the kernel to 2.4.13 and I have
glibc 2.95
Thanks.
Mike


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


obo at bourse

Dec 10, 2001, 1:48 AM

Post #2 of 10 (241 views)
Permalink
Re: httpd not running [In reply to]

Mike Walker wrote:
>
> Hi, I am kind of new to Apache compiling, but not to Linux. Today I
> downloaded Apache 1.3.22 and PHP 4.0.6 and compiled Apache with PHP in as a
> static module. ... it will just not
> start. apachectl does the same thing, it says it starts apache but when I
> look at running processes, it isn't running.
> I am using Linux Mandrake 7.0 but I upgraded the kernel to 2.4.13 and I have
> glibc 2.95

What do you have for "Group" in httpd.conf? If you have:

Group #-1

change it to:

Group nobody

If this is not the problem, try starting apache in single-user mode
(using the -X switch):

# ./httpd -X -f /usr/local/apache/conf/httpd.conf

and see what happens...

Rgds,

owen Boyle.

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


mike at petroleumdata

Dec 10, 2001, 2:09 AM

Post #3 of 10 (243 views)
Permalink
Re: httpd not running [In reply to]

OK, I tried both things you suggested! I got a core dump! Says:
Segmentation fault (core dumped)
I have a little file now called core.
Now what can I do?
Mike

----- Original Message -----
From: "Owen Boyle" <obo [at] bourse>
To: <users [at] httpd>
Sent: Monday, December 10, 2001 1:48 AM
Subject: Re: httpd not running


> Mike Walker wrote:
> >
> > Hi, I am kind of new to Apache compiling, but not to Linux. Today I
> > downloaded Apache 1.3.22 and PHP 4.0.6 and compiled Apache with PHP in
as a
> > static module. ... it will just not
> > start. apachectl does the same thing, it says it starts apache but when
I
> > look at running processes, it isn't running.
> > I am using Linux Mandrake 7.0 but I upgraded the kernel to 2.4.13 and I
have
> > glibc 2.95
>
> What do you have for "Group" in httpd.conf? If you have:
>
> Group #-1
>
> change it to:
>
> Group nobody
>
> If this is not the problem, try starting apache in single-user mode
> (using the -X switch):
>
> # ./httpd -X -f /usr/local/apache/conf/httpd.conf
>
> and see what happens...
>
> Rgds,
>
> owen Boyle.
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help [at] httpd
>
>


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


obo at bourse

Dec 10, 2001, 2:23 AM

Post #4 of 10 (246 views)
Permalink
Re: httpd not running [In reply to]

Mike wrote:
>
> OK, I tried both things you suggested! I got a core dump! Says:
> Segmentation fault (core dumped)
> I have a little file now called core.

Well... at least you know why it's not working :-) You probably know
that when you get a core dump there can be one of two things wrong:

(1) The program contains serious coding errors.
(2) There is something wrong with your compiler environement.

Since thousands of other people have compiled this code successfully,
let us ignore (1) for the moment and pursue (2).

You mentioned that you upgraded the kernel... Oh dear... This could be
tricky - try the following:

- does anything else compile and run OK?
- did you recompile gcc after the kernel upgrade?
- does apache compile (and run) without PHP?
- did you ugrade your libc libraries along with the kernel?

Rgds,

Owen Boyle.

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


mike at petroleumdata

Dec 10, 2001, 9:56 AM

Post #5 of 10 (244 views)
Permalink
RE: httpd not running [In reply to]

Other things compile and run OK. I didn't recompile gcc and I didn't
upgrade my libc libraries, BUT, I have to tell you that pre-compiled
binaries don't run either - for example, there are RPM's of compiled Apache
that came with my Linux, that Apache doesn't run either. What should I do?

-----Original Message-----
From: obo [at] bourse [mailto:obo [at] bourse]
Sent: Monday, December 10, 2001 2:23 AM
To: users [at] httpd
Subject: Re: httpd not running


Mike wrote:
>
> OK, I tried both things you suggested! I got a core dump! Says:
> Segmentation fault (core dumped)
> I have a little file now called core.

Well... at least you know why it's not working :-) You probably know
that when you get a core dump there can be one of two things wrong:

(1) The program contains serious coding errors.
(2) There is something wrong with your compiler environement.

Since thousands of other people have compiled this code successfully,
let us ignore (1) for the moment and pursue (2).

You mentioned that you upgraded the kernel... Oh dear... This could be
tricky - try the following:

- does anything else compile and run OK?
- did you recompile gcc after the kernel upgrade?
- does apache compile (and run) without PHP?
- did you ugrade your libc libraries along with the kernel?

Rgds,

Owen Boyle.

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


obo at bourse

Dec 10, 2001, 10:29 AM

Post #6 of 10 (241 views)
Permalink
Re: httpd not running [In reply to]

Mike Walker wrote:
>
> Other things compile and run OK. I didn't recompile gcc and I didn't
> upgrade my libc libraries, BUT, I have to tell you that pre-compiled
> binaries don't run either - for example, there are RPM's of compiled Apache
> that came with my Linux, that Apache doesn't run either. What should I do?

I'm not suprised. Generally speaking, unless a program has been
specifically designed to run under several kernels it will not work
without re-compiling after a kernel upgrade - but I'm getting out of my
depth here. I'm not a kernel-hacker and as soon as I start getting
core-dumps from established code, I usually start re-compiling... Or get
an RPM for your new kernel.

Rgds,

Owen Boyle.

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


mike at petroleumdata

Dec 10, 2001, 10:37 AM

Post #7 of 10 (242 views)
Permalink
RE: httpd not running [In reply to]

OK, but I did compile apache on this kernel! I compiled 2 different
versions and also tried to run binaries. Neither one works. Do I need to
install new libc or something else?

-----Original Message-----
From: obo [at] bourse [mailto:obo [at] bourse]
Sent: Monday, December 10, 2001 10:29 AM
To: users [at] httpd
Subject: Re: httpd not running


Mike Walker wrote:
>
> Other things compile and run OK. I didn't recompile gcc and I didn't
> upgrade my libc libraries, BUT, I have to tell you that pre-compiled
> binaries don't run either - for example, there are RPM's of compiled
Apache
> that came with my Linux, that Apache doesn't run either. What should I
do?

I'm not suprised. Generally speaking, unless a program has been
specifically designed to run under several kernels it will not work
without re-compiling after a kernel upgrade - but I'm getting out of my
depth here. I'm not a kernel-hacker and as soon as I start getting
core-dumps from established code, I usually start re-compiling... Or get
an RPM for your new kernel.

Rgds,

Owen Boyle.

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd



---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


obo at bourse

Dec 10, 2001, 10:55 AM

Post #8 of 10 (239 views)
Permalink
Re: httpd not running [In reply to]

Mike Walker wrote:
>
> OK, but I did compile apache on this kernel! I compiled 2 different
> versions and also tried to run binaries. Neither one works. Do I need to
> install new libc or something else?

That's weird... Then it could be a library routine that apache pulls in
at run-time which is causing the seg fault. That would imply recompiling
libc... To check, do you have "truss" on your system? If so, try "#
truss httpd ..etc" to trace apache's demise. Or recompile apache with
debug on so you can gdb the core file to see where it is dying. But all
this is getting a bit messy :-(

How did you upgrade your kernel? Did you install off a CD? If so, go
back to the CD and see if you can install libc too.

Do "gcc -v" to check that gcc is OK for your kernel...

I'm clutching at straws here - it is really tough to fix these kinds of
bugs by e-mail!

Rgds,

owen Boyle

PS - signing off for the night (it is 19h here).

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


mike at petroleumdata

Dec 10, 2001, 3:52 PM

Post #9 of 10 (247 views)
Permalink
RE: httpd not running [In reply to]

Ok, I'm gonna try installing the newest glibc and gcc, then the newest
shared memory libraries, then I'll recompile and try to run it.

-----Original Message-----
From: obo [at] bourse [mailto:obo [at] bourse]
Sent: Monday, December 10, 2001 10:55 AM
To: users [at] httpd
Subject: Re: httpd not running


Mike Walker wrote:
>
> OK, but I did compile apache on this kernel! I compiled 2 different
> versions and also tried to run binaries. Neither one works. Do I need to
> install new libc or something else?

That's weird... Then it could be a library routine that apache pulls in
at run-time which is causing the seg fault. That would imply recompiling
libc... To check, do you have "truss" on your system? If so, try "#
truss httpd ..etc" to trace apache's demise. Or recompile apache with
debug on so you can gdb the core file to see where it is dying. But all
this is getting a bit messy :-(

How did you upgrade your kernel? Did you install off a CD? If so, go
back to the CD and see if you can install libc too.

Do "gcc -v" to check that gcc is OK for your kernel...

I'm clutching at straws here - it is really tough to fix these kinds of
bugs by e-mail!

Rgds,

owen Boyle

PS - signing off for the night (it is 19h here).

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


mike at petroleumdata

Dec 11, 2001, 2:50 PM

Post #10 of 10 (236 views)
Permalink
RE: httpd not running [In reply to]

WOOHOO! I installed the very newest libc, and the newest gcc, then compiled
and installed the newest shared memory libraries, and guess what? Works
like a charm! Thanks a lot everyone! Apache rocks!

-----Original Message-----
From: obo [at] bourse [mailto:obo [at] bourse]
Sent: Monday, December 10, 2001 10:55 AM
To: users [at] httpd
Subject: Re: httpd not running


Mike Walker wrote:
>
> OK, but I did compile apache on this kernel! I compiled 2 different
> versions and also tried to run binaries. Neither one works. Do I need to
> install new libc or something else?

That's weird... Then it could be a library routine that apache pulls in
at run-time which is causing the seg fault. That would imply recompiling
libc... To check, do you have "truss" on your system? If so, try "#
truss httpd ..etc" to trace apache's demise. Or recompile apache with
debug on so you can gdb the core file to see where it is dying. But all
this is getting a bit messy :-(

How did you upgrade your kernel? Did you install off a CD? If so, go
back to the CD and see if you can install libc too.

Do "gcc -v" to check that gcc is OK for your kernel...

I'm clutching at straws here - it is really tough to fix these kinds of
bugs by e-mail!

Rgds,

owen Boyle

PS - signing off for the night (it is 19h here).

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help [at] httpd


---------------------------------------------------------------------
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
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.