You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Gareth Howlett <ga...@pivotalsys.com> on 2007/03/15 18:58:03 UTC

[users@httpd] Apache on Win2K won't respond

Hi,

I'm new to the list but a long time user of apache - great piece of
software.  I've never needed this list before but I seem to have run
into a rather odd problem I can't solve.

I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
boxes.  I moved IIS over to port 8080 and installed apache on port 80.
The installation went off without a hitch - the install log has no
errors at all.  The first thing I did was cranked the log level up to
debug and restart the server.  The error log now contains the following:

[Thu Mar 15 12:56:49 2007] [notice] Parent: Received restart signal --
Restarting the server.
[Thu Mar 15 12:56:49 2007] [notice] Child 4096: Exit event signaled.
Child process is ending.
[Thu Mar 15 12:56:49 2007] [notice] Apache/2.2.4 (Win32) configured --
resuming normal operations
[Thu Mar 15 12:56:49 2007] [notice] Server built: Jan  9 2007 23:17:20
[Thu Mar 15 12:56:49 2007] [notice] Parent: Created child process 3864
[Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(481): Parent: Sent the
scoreboard to the child
[Thu Mar 15 12:56:49 2007] [notice] Child 3864: Child process is running
[Thu Mar 15 12:56:49 2007] [info] Parent: Duplicating socket 352 and
sending it to child process 3864
[Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(599): Parent: Sent 1
listeners to child 3864
[Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(402): Child 3864:
Retrieved our scoreboard from the parent.
[Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(558): Child 3864:
retrieved 1 listeners from parent
[Thu Mar 15 12:56:50 2007] [notice] Child 4096: Released the start mutex
[Thu Mar 15 12:56:50 2007] [notice] Child 3864: Acquired the start
mutex.
[Thu Mar 15 12:56:50 2007] [notice] Child 3864: Starting 250 worker
threads.
[Thu Mar 15 12:56:51 2007] [notice] Child 4096: Waiting for 250 worker
threads to exit.
[Thu Mar 15 12:56:51 2007] [notice] Child 4096: All worker threads have
exited.
[Thu Mar 15 12:56:51 2007] [notice] Child 4096: Child process is exiting
[Thu Mar 15 12:56:51 2007] [notice] Child 3864: Starting thread to
listen on port 80.

So, everything seems fine... so far as I can see.

The problem is, the server _NEVER_ responds to a single get command.
Here's everything I tried so far:

- I've tried IE and Firefox, no difference... they just sit and wait
until they timeout.

- I've tried telneting to the server.  I get connected but any get
command I've tried results in no response and no disconnection... it
just sits there like I haven't typed anything.  If you stop the server
while telneted to it, you get disconnected - so I know it's the right
server.

- I've stopped the server, done a netstat (it wasn't there), restart the
server and done a netstat (now it's there).

- The access log is _completely_ empty... no help there.

- I've disabled all firewalls and networking protection - including
uninstalling my virus scanner.

- I've made sure IIS works on port 80 - so I know it's not a firewall
issue.

- I've tried reconfiguring the server for a different port (8081), no
difference.

- To be safe I've rebooted after messing with firewalls and uninstalling
virus scanners, etc.  (_the_ windows solution didn't work)

- I've even reinstalled the thing _several_ times.


I'm running out of ideas... anyone else have any I haven't thought of?

- Gareth

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache on Win2K won't respond

Posted by Gareth Howlett <ga...@pivotalsys.com>.
I'll try to remember to retest.  In fairness though, the machine has a
_TON_ of different Network connections... some VPNs, some modem, some
Ethernet, etc... it could be _very_ hard to reproduce on another
machine.  Not to mention the machine is not mine - it belongs to a
co-worker who is at a satellite location.  I might even get my hands on
this machine again for quite a while... but, like I said, I'll do what I
can.

- Gareth

-----Original Message-----
From: Tom Donovan [mailto:donovant@bellatlantic.net] 
Sent: Thursday, March 15, 2007 4:41 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache on Win2K won't respond

Gareth Howlett wrote:
 >> I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
 >> boxes.  I moved IIS over to port 8080 and installed apache on port
80.
 >> The installation went off without a hitch - the install log has no
 >> ...
 >> The problem is, the server _NEVER_ responds to a single get command.
 >> ...
 >> - The access log is _completely_ empty... no help there.
 >> ...
 >> - I've disabled all firewalls and networking protection - including
 > ...
> Adding the "Win32DisableAcceptEx" directive (on the top level of the
> apache config file) did the trick.  After a restart of the server,
> everything started working just like it should.

It's great that you are up and running, but a little disconcerting;
since your symptoms are not the 
ones that Win32DisableAcceptEx is supposed to fix in Win2k/Apache224.  I
run this same combination 
and Apache always responds for me.  The Win32DisableAcceptEx just fixes
the 0.0.0.0 IP address problem.

If you can remember, it would be helpful to try it both with and without
Win32DisableAcceptEx when 
Apache 2.2.5 is released.  If it still doesn't work without
Win32DisableAcceptEx, then it is 
something other than bug
http://issues.apache.org/bugzilla/show_bug.cgi?id=41321 - so entering a
new 
bug would be appropriate

-tom-

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache on Win2K won't respond

Posted by Joshua Slive <jo...@slive.ca>.
On 3/15/07, Tom Donovan <do...@bellatlantic.net> wrote:
> Joshua Slive wrote:
> > No, Win32DisableAcceptEx makes apache fall back to some less-advanced
> > networking routines. This can solve all sorts of problems,
> > particularly with buggy network drivers, software firewalls, virus
> > checkers and similar.
>
>
> True - but I thought the only accept() vs. AcceptEx() *change* in Apache 2.2.4 was bug 41321.
>
> Are there additional reasons Win32DisableAcceptEx would be needed with 2.2.4, but not needed with
> 2.2.3 in the same environment?

This is likely true, but the original problem report was a fresh 2.2.4
install, not a 2.2.3 to 2.2.4 upgrade.

Joshua.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache on Win2K won't respond

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Tom Donovan wrote:
> Joshua Slive wrote:
>> No, Win32DisableAcceptEx makes apache fall back to some less-advanced
>> networking routines. This can solve all sorts of problems,
>> particularly with buggy network drivers, software firewalls, virus
>> checkers and similar.
> 
> 
> True - but I thought the only accept() vs. AcceptEx() *change* in Apache
> 2.2.4 was bug 41321.

That is correct, it's a flaw in Windows triggered by a change in apr, where
Windows 2000 (and only 2000) will refuse to honor traditional methods of
determining the remote client IP address/host once a connection is accepted
using the Win32 AcceptEx() API call.

The flaw in apr of presuming we don't have that host identification already
is resolved for the next release of apr and httpd (2.2.5).

> Are there additional reasons Win32DisableAcceptEx would be needed with
> 2.2.4, but not needed with 2.2.3 in the same environment?

Not that I know of.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache on Win2K won't respond

Posted by Tom Donovan <do...@bellatlantic.net>.
Joshua Slive wrote:
> No, Win32DisableAcceptEx makes apache fall back to some less-advanced
> networking routines. This can solve all sorts of problems,
> particularly with buggy network drivers, software firewalls, virus
> checkers and similar.


True - but I thought the only accept() vs. AcceptEx() *change* in Apache 2.2.4 was bug 41321.

Are there additional reasons Win32DisableAcceptEx would be needed with 2.2.4, but not needed with 
2.2.3 in the same environment?

-tom-

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache on Win2K won't respond

Posted by Joshua Slive <jo...@slive.ca>.
On 3/15/07, Tom Donovan <do...@bellatlantic.net> wrote:

> > Adding the "Win32DisableAcceptEx" directive (on the top level of the
> > apache config file) did the trick.  After a restart of the server,
> > everything started working just like it should.
>
> It's great that you are up and running, but a little disconcerting; since your symptoms are not the
> ones that Win32DisableAcceptEx is supposed to fix in Win2k/Apache224.  I run this same combination
> and Apache always responds for me.  The Win32DisableAcceptEx just fixes the 0.0.0.0 IP address problem.

No, Win32DisableAcceptEx makes apache fall back to some less-advanced
networking routines. This can solve all sorts of problems,
particularly with buggy network drivers, software firewalls, virus
checkers and similar.

Joshua.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache on Win2K won't respond

Posted by Tom Donovan <do...@bellatlantic.net>.
Gareth Howlett wrote:
 >> I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
 >> boxes.  I moved IIS over to port 8080 and installed apache on port 80.
 >> The installation went off without a hitch - the install log has no
 >> ...
 >> The problem is, the server _NEVER_ responds to a single get command.
 >> ...
 >> - The access log is _completely_ empty... no help there.
 >> ...
 >> - I've disabled all firewalls and networking protection - including
 > ...
> Adding the "Win32DisableAcceptEx" directive (on the top level of the
> apache config file) did the trick.  After a restart of the server,
> everything started working just like it should.

It's great that you are up and running, but a little disconcerting; since your symptoms are not the 
ones that Win32DisableAcceptEx is supposed to fix in Win2k/Apache224.  I run this same combination 
and Apache always responds for me.  The Win32DisableAcceptEx just fixes the 0.0.0.0 IP address problem.

If you can remember, it would be helpful to try it both with and without Win32DisableAcceptEx when 
Apache 2.2.5 is released.  If it still doesn't work without Win32DisableAcceptEx, then it is 
something other than bug http://issues.apache.org/bugzilla/show_bug.cgi?id=41321 - so entering a new 
bug would be appropriate

-tom-

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache on Win2K won't respond

Posted by Gareth Howlett <ga...@pivotalsys.com>.
Hi Matthew & Tom,

It works!

Matthew, I hadn't thought of that but I jumped over the mime-type header
response you were looking for and went straight to ethereal/wireshark...
I could see the entire conversation to the webserver.  Every character
of my telnet session was sent and ACKed but after the carriage return,
one ACK was sent and then nothing else from either side.

After this I went-on to Tom's suggestion.

Adding the "Win32DisableAcceptEx" directive (on the top level of the
apache config file) did the trick.  After a restart of the server,
everything started working just like it should.

Thanks for the help!,

- Gareth

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache on Win2K won't respond

Posted by matt farey <ma...@gmail.com>.

Gareth Howlett wrote:
> Hi,
>
> I'm new to the list but a long time user of apache - great piece of
> software.  I've never needed this list before but I seem to have run
> into a rather odd problem I can't solve.
>
> I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
> boxes.  I moved IIS over to port 8080 and installed apache on port 80.
> The installation went off without a hitch - the install log has no
> errors at all.  The first thing I did was cranked the log level up to
> debug and restart the server.  The error log now contains the following:
>
> [Thu Mar 15 12:56:49 2007] [notice] Parent: Received restart signal --
> Restarting the server.
> [Thu Mar 15 12:56:49 2007] [notice] Child 4096: Exit event signaled.
> Child process is ending.
> [Thu Mar 15 12:56:49 2007] [notice] Apache/2.2.4 (Win32) configured --
> resuming normal operations
> [Thu Mar 15 12:56:49 2007] [notice] Server built: Jan  9 2007 23:17:20
> [Thu Mar 15 12:56:49 2007] [notice] Parent: Created child process 3864
> [Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(481): Parent: Sent the
> scoreboard to the child
> [Thu Mar 15 12:56:49 2007] [notice] Child 3864: Child process is running
> [Thu Mar 15 12:56:49 2007] [info] Parent: Duplicating socket 352 and
> sending it to child process 3864
> [Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(599): Parent: Sent 1
> listeners to child 3864
> [Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(402): Child 3864:
> Retrieved our scoreboard from the parent.
> [Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(558): Child 3864:
> retrieved 1 listeners from parent
> [Thu Mar 15 12:56:50 2007] [notice] Child 4096: Released the start mutex
> [Thu Mar 15 12:56:50 2007] [notice] Child 3864: Acquired the start
> mutex.
> [Thu Mar 15 12:56:50 2007] [notice] Child 3864: Starting 250 worker
> threads.
> [Thu Mar 15 12:56:51 2007] [notice] Child 4096: Waiting for 250 worker
> threads to exit.
> [Thu Mar 15 12:56:51 2007] [notice] Child 4096: All worker threads have
> exited.
> [Thu Mar 15 12:56:51 2007] [notice] Child 4096: Child process is exiting
> [Thu Mar 15 12:56:51 2007] [notice] Child 3864: Starting thread to
> listen on port 80.
>
> So, everything seems fine... so far as I can see.
>
> The problem is, the server _NEVER_ responds to a single get command.
> Here's everything I tried so far:
>
> - I've tried IE and Firefox, no difference... they just sit and wait
> until they timeout.
>
> - I've tried telneting to the server.  I get connected but any get
> command I've tried results in no response and no disconnection... it
> just sits there like I haven't typed anything.  If you stop the server
> while telneted to it, you get disconnected - so I know it's the right
> server.
>
> - I've stopped the server, done a netstat (it wasn't there), restart the
> server and done a netstat (now it's there).
>
> - The access log is _completely_ empty... no help there.
>
> - I've disabled all firewalls and networking protection - including
> uninstalling my virus scanner.
>
> - I've made sure IIS works on port 80 - so I know it's not a firewall
> issue.
>
> - I've tried reconfiguring the server for a different port (8081), no
> difference.
>
> - To be safe I've rebooted after messing with firewalls and uninstalling
> virus scanners, etc.  (_the_ windows solution didn't work)
>
> - I've even reinstalled the thing _several_ times.
>
>
> I'm running out of ideas... anyone else have any I haven't thought of?
>
> - Gareth
>
>   
Is it sending headers. use a proxy like fiddlertool to see.
do you have any rules or is it a defulat install.
assuming its bound to 127.0.0.1
you did this right?

telnet 127.0.0.1 80[enter]
GET / HTTP/1.1[enter]
Host: 127.0.0.1[enter]
User-Agent: firefox[enter][enter]

You could install wireshark and packet capture some connection attempts.
thats what i do when the server is apparently not sending headers.


Matthew Farey




---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache on Win2K won't respond

Posted by Tom Donovan <do...@bellatlantic.net>.
Gareth Howlett wrote:
> I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
> boxes.  I moved IIS over to port 8080 and installed apache on port 80.
> The installation went off without a hitch - the install log has no
> ...
> The problem is, the server _NEVER_ responds to a single get command.
> ...
> - The access log is _completely_ empty... no help there.
> ...
> - I've disabled all firewalls and networking protection - including


With Apache 2.2.4 on Win2k you will need to use the Win32DisableAcceptEx directive to correct a 
different bug - so it is worth giving it a try.

FYI - an APR Bug (http://issues.apache.org/bugzilla/show_bug.cgi?id=41321) requires that 
Win2k/Apache 2.2.4 users have the Win32DisableAcceptEx directive in their conf, else IP addresses 
show as 0.0.0.0 in the logs, cgi's, etc.

-tom-


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org