Problems starting Apache 1.3.22

Problems starting Apache 1.3.22

Post by Dan Kell » Sat, 29 Dec 2001 06:34:31



Hey all!

Last night I was using Apache just fine, and everything worked... then I
shut down Apache (apachectl stop).  THEN, this morning, I started it up, and
it says, " apachectl start: httpd started "  And when I try to access a web
page... It's nonexistent.  I again try "apachectl start" and it replies
"httpd started"  Still nothing... I then do several "apachectl start" and
they ALL say "httpd started"  They SHOULD say, "httpd already running" or
something to that effect.  Anybody have this problem?  Please help ASAP!!!

DAN

 
 
 

Problems starting Apache 1.3.22

Post by Joshua Sliv » Sat, 29 Dec 2001 06:37:44



> Hey all!
> Last night I was using Apache just fine, and everything worked... then I
> shut down Apache (apachectl stop).  THEN, this morning, I started it up, and
> it says, " apachectl start: httpd started "  And when I try to access a web
> page... It's nonexistent.  I again try "apachectl start" and it replies
> "httpd started"  Still nothing... I then do several "apachectl start" and
> they ALL say "httpd started"  They SHOULD say, "httpd already running" or
> something to that effect.  Anybody have this problem?  Please help ASAP!!!

Start with the apache error log.

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://httpd.apache.org/userslist.html

 
 
 

Problems starting Apache 1.3.22

Post by Dan Kell » Sat, 29 Dec 2001 06:40:07


This is all that the error_log says:
[Wed Dec 26 20:38:44 2001] [notice] SIGHUP received.  Attempting to restart

It has said nothing for today(which is when I have tried to start it.)

DAN



> > Hey all!

> > Last night I was using Apache just fine, and everything worked... then I
> > shut down Apache (apachectl stop).  THEN, this morning, I started it up,
and
> > it says, " apachectl start: httpd started "  And when I try to access a
web
> > page... It's nonexistent.  I again try "apachectl start" and it replies
> > "httpd started"  Still nothing... I then do several "apachectl start"
and
> > they ALL say "httpd started"  They SHOULD say, "httpd already running"
or
> > something to that effect.  Anybody have this problem?  Please help
ASAP!!!

> Start with the apache error log.

> --
> Joshua Slive

> Apache HTTP Server Users Mailing List:

http://httpd.apache.org/userslist.html
 
 
 

Problems starting Apache 1.3.22

Post by Joshua Sliv » Sat, 29 Dec 2001 06:53:33





>> > Hey all!

>> > Last night I was using Apache just fine, and everything worked... then I
>> > shut down Apache (apachectl stop).  THEN, this morning, I started it up,
> and
>> > it says, " apachectl start: httpd started "  And when I try to access a
> web
>> > page... It's nonexistent.

> This is all that the error_log says:
> [Wed Dec 26 20:38:44 2001] [notice] SIGHUP received.  Attempting to restart
> It has said nothing for today(which is when I have tried to start it.)

Please use a proper quoting style (new text undernearth) so that
people can follow the thread.

Next thing to try is to launch httpd directly without using the
apachectl helper script.

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://httpd.apache.org/userslist.html

 
 
 

Problems starting Apache 1.3.22

Post by Dan Kell » Sat, 29 Dec 2001 06:55:59






> >> > Hey all!

> >> > Last night I was using Apache just fine, and everything worked...
then I
> >> > shut down Apache (apachectl stop).  THEN, this morning, I started it
up,
> > and
> >> > it says, " apachectl start: httpd started "  And when I try to access
a
> > web
> >> > page... It's nonexistent.


> > This is all that the error_log says:
> > [Wed Dec 26 20:38:44 2001] [notice] SIGHUP received.  Attempting to
restart

> > It has said nothing for today(which is when I have tried to start it.)

> Please use a proper quoting style (new text undernearth) so that
> people can follow the thread.

> Next thing to try is to launch httpd directly without using the
> apachectl helper script.

> --
> Joshua Slive

> Apache HTTP Server Users Mailing List:

http://httpd.apache.org/userslist.html

I did that too, and it still doesn't start, but "appears" to.

DAN

 
 
 

Problems starting Apache 1.3.22

Post by Joshua Sliv » Sat, 29 Dec 2001 07:24:24





>> Next thing to try is to launch httpd directly without using the
>> apachectl helper script.
> I did that too, and it still doesn't start, but "appears" to.

And you get no error message whatsoever either at the console or in
the error log?  That would be very strange!  Where did you get your
copy of apache?  What modules are you using? What version?

One thing to try:
strace httpd
which should show you what system calls the binary is making before it
dies.

By the way, you are sure that apache isn't running?  Have you checked
your process listing (ps -ef or ps aux) for httpd processes?

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://httpd.apache.org/userslist.html

 
 
 

Problems starting Apache 1.3.22

Post by Dan Kell » Sat, 29 Dec 2001 07:33:11






> >> Next thing to try is to launch httpd directly without using the
> >> apachectl helper script.

> > I did that too, and it still doesn't start, but "appears" to.

> And you get no error message whatsoever either at the console or in
> the error log?  That would be very strange!  Where did you get your
> copy of apache?  What modules are you using? What version?

> One thing to try:
> strace httpd
> which should show you what system calls the binary is making before it
> dies.

> By the way, you are sure that apache isn't running?  Have you checked
> your process listing (ps -ef or ps aux) for httpd processes?

> --
> Joshua Slive

> Apache HTTP Server Users Mailing List:

http://httpd.apache.org/userslist.html

That's correct, no error messages anywhere, and no processes anywhere.

I got it from Apache.org, and I'm using several modules.  They are listed
below (httpd -l):
  http_core.c
  mod_vhost_alias.c
  mod_env.c
  mod_log_config.c
  mod_log_agent.c
  mod_mime_magic.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_info.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_speling.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_access.c
  mod_auth.c
  mod_auth_dbm.c
  mod_so.c
  mod_setenvif.c
  mod_php4.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

**Notice the last line, (suexec...)   ?????????? **

When I do the strace httpd, I get a whole bunch of stuff.  I only noticed
one thing that stood out to me, and it follows:
stat64("/usr/local/apache/bin/suexec", 0xbffff9b0) = -1 ENOENT (No such file
or directory)

Which is true.  That file does not exist.

ARGG!!

DAN :-)

 
 
 

Problems starting Apache 1.3.22

Post by Joshua Sliv » Sat, 29 Dec 2001 07:49:39



> suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
> **Notice the last line, (suexec...)   ?????????? **

Don't worry about that; it is harmless.

Quote:> When I do the strace httpd, I get a whole bunch of stuff.  I only noticed
> one thing that stood out to me, and it follows:
> stat64("/usr/local/apache/bin/suexec", 0xbffff9b0) = -1 ENOENT (No such file
> or directory)
> Which is true.  That file does not exist.

Again, the suexec is not important.  Can you show some more of the
strace output (especially near the end)?

One more thing to check: Do you have enough disk space available in
all the important places?  I've heard of problems like this when there
were disk space problems.

If all else fails, this may require starting httpd under a de* to
see what is happening.

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://www.veryComputer.com/

 
 
 

Problems starting Apache 1.3.22

Post by Dan Kell » Sat, 29 Dec 2001 08:12:08


"Joshua Slive" <n...@slive.ca> wrote in message

news:a0g8i3$1hg$1@nntp.itservices.ubc.ca...
> Dan Kelly <danke...@wvi.com> wrote:
> > suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

> > **Notice the last line, (suexec...)   ?????????? **

> Don't worry about that; it is harmless.

> > When I do the strace httpd, I get a whole bunch of stuff.  I only
noticed
> > one thing that stood out to me, and it follows:
> > stat64("/usr/local/apache/bin/suexec", 0xbffff9b0) = -1 ENOENT (No such
file
> > or directory)

> > Which is true.  That file does not exist.

> Again, the suexec is not important.  Can you show some more of the
> strace output (especially near the end)?

> One more thing to check: Do you have enough disk space available in
> all the important places?  I've heard of problems like this when there
> were disk space problems.

> If all else fails, this may require starting httpd under a debugger to
> see what is happening.

> --
> Joshua Slive
> n...@slive.ca
> Apache HTTP Server Users Mailing List:

http://httpd.apache.org/userslist.html

I have plenty of disk space in all area's except /home (558Mb free)...

Here's a BUNCH of lines from the bottom of the strace output:

brk(0)                                  = 0x81b3cd0
brk(0x81b5cf0)                          = 0x81b5cf0
brk(0x81b6000)                          = 0x81b6000
brk(0x81b9000)                          = 0x81b9000
brk(0x81bc000)                          = 0x81bc000
brk(0x81bf000)                          = 0x81bf000
stat64("/usr/local/apache/bin/suexec", 0xbffff9b0) = -1 ENOENT (No such file
or directory)
lstat64("/usr/local/apache/conf/httpd.conf", {st_mode=S_IFREG|0644,
st_size=34527, ...}) = 0
open("/usr/local/apache/conf/httpd.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34527, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=34527, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
read(3, "##\n## httpd.conf -- Apache HTTP "..., 4096) = 4096
stat64("/usr/local/apache", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
read(3, "ceConfig conf/srm.conf\n#AccessCo"..., 4096) = 4096
open("/usr/local/apache/libexec/libphp4.so", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@!\2\000"..., 1024)
= 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=3135101, ...}) = 0
old_mmap(NULL, 1185840, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4020b000
mprotect(0x4030b000, 137264, PROT_NONE) = 0
old_mmap(0x4030b000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4,
0xff000) = x4030b000
old_mmap(0x40318000, 84016, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x40318000
close(4)                                = 0
read(3, "\'Main\' server configuration\n#\n# "..., 4096) = 4096
socket(PF_UNIX, SOCK_STREAM, 0)         = 4
connect(4, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT
(No such file or directory)
close(4)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=1750, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40
019000
read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1750
brk(0x81c0000)                          = 0x81c0000
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x40019000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=27589, ...}) = 0
old_mmap(NULL, 27589, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4032d000
close(4)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200 \0"..., 1024) =
102
4
fstat64(4, {st_mode=S_IFREG|0755, st_size=262272, ...}) = 0
old_mmap(NULL, 42600, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40334000
mprotect(0x4033e000, 1640, PROT_NONE)   = 0
old_mmap(0x4033e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4,
0x900
0) = 0x4033e000
close(4)                                = 0
munmap(0x4032d000, 27589)               = 0
open("/etc/passwd", O_RDONLY)           = 4
fcntl64(0x4, 0x1, 0, 0x1)               = 0
fcntl64(0x4, 0x2, 0x1, 0x1)             = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1635, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40
019000
read(4, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1635
close(4)                                = 0
munmap(0x40019000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 4
connect(4, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT
(No such file or directory)
close(4)                                = 0
open("/etc/group", O_RDONLY)            = 4
fcntl64(0x4, 0x1, 0, 0x1)               = 0
fcntl64(0x4, 0x2, 0x1, 0x1)             = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=731, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40
019000
read(4, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 731
close(4)                                = 0
munmap(0x40019000, 4096)                = 0
brk(0x81c3000)                          = 0x81c3000
read(3, "verride Options FileInfo\n</Direc"..., 4096) = 4096
read(3, "tainer, that host\'s errors will "..., 4096) = 4096
read(3, "treated as applications and\n    "..., 4096) = 4096
brk(0x81c6000)                          = 0x81c6000
read(3, "e similarity, the following Add*"..., 4096) = 4096
read(3, "s asis\n\n    #\n    # If you wish "..., 4096) = 4096
brk(0x81c7000)                          = 0x81c7000
read(3, ">\n\n    #\n    # Enable/disable th"..., 4096) = 1759
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
stat64("/usr/local/apache/conf/srm.conf", {st_mode=S_IFREG|0644,
st_size=357, ..
.}) = 0
lstat64("/usr/local/apache/conf/srm.conf", {st_mode=S_IFREG|0644,
st_size=357, .
..}) = 0
open("/usr/local/apache/conf/srm.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=357, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=357, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40
018000
read(3, "##\n## srm.conf -- Apache HTTP se"..., 4096) = 357
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
stat64("/usr/local/apache/conf/access.conf", {st_mode=S_IFREG|0644,
st_size=348,
 ...}) = 0
lstat64("/usr/local/apache/conf/access.conf", {st_mode=S_IFREG|0644,
st_size=348
, ...}) = 0
open("/usr/local/apache/conf/access.conf", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=348, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=348, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40
018000
read(3, "##\n## access.conf -- Apache HTTP"..., 4096) = 348
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
brk(0x81ca000)                          = 0x81ca000
open("/usr/local/apache/logs/error_log", O_WRONLY|O_APPEND|O_CREAT, 0666) =
3
fcntl64(0x3, 0, 0xf, 0x40016b4c)        = 15
close(3)                                = 0
fcntl64(0xf, 0x3, 0x40016b4c, 0x400)    = 1025
fstat64(15, {st_mode=S_IFREG|0644, st_size=352734, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40
018000
_llseek(15, 0, [0], SEEK_CUR)           = 0
dup2(15, 2)                             = 2
brk(0x81cb000)                          = 0x81cb000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40
019000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2601
brk(0x81cc000)                          = 0x81cc000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40019000, 4096)                = 0
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=173408, ...}) = 0
mmap2(NULL, 173408, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4033f000
close(3)                                = 0
open("./php.ini", O_RDONLY)             = -1 ENOENT (No such file or
directory)
open("/usr/local/lib/php.ini", O_RDONLY) = 3
getcwd("/usr/local/apache/bin", 4095)   = 22
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/usr/local/lib/php.ini", {st_mode=S_IFREG|0644, st_size=28606,
...}) =
0
brk(0x81d1000)                          = 0x81d1000
ioctl(3, 0x5401, 0xbffff850)            = -1 ENOTTY (Inappropriate ioctl for
dev
ice)
fstat64(3, {st_mode=S_IFREG|0644, st_size=28606, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40
019000
read(3, "[PHP]\n\n;;;;;;;;;;;;;;;;;;;\n; Abo"..., 8192) = 8192
read(3, "s supplied here.  By default, us"..., 8192) = 8192
read(3, "at it should be the name of the "..., 8192) = 8192
brk(0x81d2000)                          = 0x81d2000
read(3, "ty that the \'garbage collection\'"..., 8192) = 4030
read(3, "", 4096)                       = 0
brk(0x81d3000)                          = 0x81d3000
read(3, "", 8192)                       = 0
ioctl(3, 0x5401, 0xbfffecd0)            = -1 ENOTTY (Inappropriate ioctl for
dev
ice)
close(3)                                = 0
munmap(0x40019000, 4096)                = 0
brk(0x81d4000)                          = 0x81d4000
brk(0x81d5000)                          = 0x81d5000
brk(0x81d6000)                          = 0x81d6000
brk(0x81d7000)                          = 0x81d7000
brk(0x81d8000)                          = 0x81d8000
brk(0x81d9000)                          = 0x81d9000
...

read more »

 
 
 

Problems starting Apache 1.3.22

Post by Joshua Sliv » Sat, 29 Dec 2001 10:31:40



> I have plenty of disk space in all area's except /home (558Mb free)...
> Here's a BUNCH of lines from the bottom of the strace output:

OK.  I don't see anything obviously wrong (although I'm not an expert
at reading syscall traces).  Here's two more things to try:

1. Disable php by removing it's AddModule line and see if things still
crash.

2. Try running "strace httpd -X".  This prevents apache from forking,
so we should be able to see what happens after the "fork" syscall that
is at the end of the strace output.

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://httpd.apache.org/userslist.html

 
 
 

Problems starting Apache 1.3.22

Post by Dan Kell » Sat, 29 Dec 2001 13:22:28




> > I have plenty of disk space in all area's except /home (558Mb free)...

> > Here's a BUNCH of lines from the bottom of the strace output:

> OK.  I don't see anything obviously wrong (although I'm not an expert
> at reading syscall traces).  Here's two more things to try:

> 1. Disable php by removing it's AddModule line and see if things still
> crash.

> 2. Try running "strace httpd -X".  This prevents apache from forking,
> so we should be able to see what happens after the "fork" syscall that
> is at the end of the strace output.

> --
> Joshua Slive

> Apache HTTP Server Users Mailing List:

http://httpd.apache.org/userslist.html

This is what I did:

Since I'm compiling PHP4 into Apache, I have the line
"--activate-module=src/modules/php4/libphp4.a" in my "configure" line with
the rest of my activated modules.  Well, that's all well and good.  But
then, through some lapse in my brain, (hehe) I uncommented an AddModule line
in my httpd.conf which added PHP4 to Apache and apparently added the PHP4
module twice (once in the compilation and once as a dynamic module.)  So,
what I did was, I removed the "--activate-module=src/modules/php4/libphp4.a"
and re-compiled Apache, re-make'd and make install'ed it and ran it, and it
works!

I knew it would be something easy, and stupid.  Thanks for your time,
Joshua!

DAN

 
 
 

Problems starting Apache 1.3.22

Post by Paul Rubi » Tue, 01 Jan 2002 21:38:54


I see further down the thread that you sorted out the problem but will
post my reply anyway: all kinds of errors can cause the server to fail
to start like that.  Once you've checked for the usual causes
(unwriteable log file is a popular one that didn't get mentioned),
basically the next thing to do is run httpd -X under a de* and
step through til the server exits.  That will usually tell you pretty
quickly what has happened.