logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.4.7 not answering on Windows Server 2012
Author
Tinchote



Joined: 12 Feb 2014
Posts: 2

PostPosted: Wed 12 Feb '14 1:08    Post subject: Apache 2.4.7 not answering on Windows Server 2012 Reply with quote

So, here is my setup: a newly installed Windows Server 2012. The only software installed on it beyond the operating system is Apache 2.4.7 and PHP 2.4. The computer is in a LAN behind a router. The router tunnels port 80 to port 80 in this computer.

After I set up my website, everything was working perfectly: I could see the web pages from outside my LAN, PHP was executing, accesses were logged.

Then after a couple days, I could not open the pages from outside the LAN. From within the LAN, I could open them sometimes and sometimes they wouldn't.

Some facts:

  1. From within the server itself, I can open all pages.

  2. If I telnet to port 80 either from within the LAN or from outside, a few times the port would answer but wouldn't serve the GET request, while other times it just does not reply.

  3. Netstat shows port 80 binded to httpd.exe.

  4. If I make the router tunnel port 80 to another computer in the LAN, I can serve pages from this other computer, so it doesn't seem like the router is the problem.

  5. The server does not answer to vpn connect attempts either. It does open connections to Remote Desktop, however, even from outside the LAN (both ports tunnelled by the router).

  6. I have tried all this both with Windows Firewall activated and not activated. I have also checked the rules, and the only rule that mentions port 80 is the one for Apache, and is set to allow all.

  7. No error messages are reported in Apache logs.

  8. Restarting the server did not seem to make a difference.


I cannot make sense of all this. Any troubleshooting suggestion will be very welcome.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Wed 12 Feb '14 1:33    Post subject: Reply with quote

Do you have in your config the following ?

AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off

Is advised with the kind of issue you have.
Back to top
Tinchote



Joined: 12 Feb 2014
Posts: 2

PostPosted: Wed 12 Feb '14 2:47    Post subject: Reply with quote

Steffen wrote:
Do you have in your config the following ?

AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off

Is advised with the kind of issue you have.


Yes, I found that in some thread and I tried. Made no difference.

Something that I forgot to mention is these messages that appear in the error log (it is not obvious to me if they are actually reporting an error):

Code:

[Tue Feb 11 18:37:55.829173 2014] [core:notice] [pid 1256:tid 424] AH00094: Command line: 'C:\\Program Files\\Apache24\\bin\\httpd.exe -d C:/Program Files/Apache24'
[Tue Feb 11 18:37:55.831173 2014] [mpm_winnt:notice] [pid 1256:tid 424] AH00418: Parent: Created child process 3264
[Tue Feb 11 18:37:56.533257 2014] [mpm_winnt:notice] [pid 3264:tid 300] AH00354: Child: Starting 64 worker threads.
[Tue Feb 11 18:37:57.319352 2014] [mpm_winnt:notice] [pid 2492:tid 308] AH00364: Child: All worker threads have exited.
Back to top
Anaksunaman



Joined: 19 Dec 2013
Posts: 54

PostPosted: Mon 17 Feb '14 10:36    Post subject: Apache 2.4.7 not answering on Windows Server 2012 Reply with quote

The error.log data is generally consistent with normal start-up/shutdown messaging (e.g. there are no "errors" in what you posted -- these lines will attempt to be written to the error.log no matter what).

The only possibility of an error lies in the following line:

Code:
[Tue Feb 11 18:37:56.533257 2014] [mpm_winnt:notice] [pid 3264:tid 300] AH00354: Child: Starting 64 worker threads.
[Tue Feb 11 18:37:57.319352 2014] [mpm_winnt:notice] [pid 2492:tid 308] AH00364: Child: All worker threads have exited.

The line

Code:
[Tue Feb 11 18:37:57.319352 2014] [mpm_winnt:notice] [pid 2492:tid 308] AH00364: Child: All worker threads have exited.

is usually printed during server shutdown. Given the timestamps in the log, it seems to indicate there might be a server immediately shutdown after start up.

Two potentially odd things in the error.log data you posted are:

A) there seems to be a missing "Parent: Received shutdown signal -- Shutting down the server." directive like in the following:

Code:
[Tue Feb 11 00:47:14.449172 2014] [core:notice] [pid 1908:tid 376] AH00094: Command line: 'C:\\Programs\\Apache2.4\\bin\\httpd.exe -d C:/Programs/Apache2.4'
[Tue Feb 11 00:47:19.285181 2014] [mpm_winnt:notice] [pid 2764:tid 276] AH00354: Child: Starting 64 worker threads.
[Tue Feb 11 05:35:39.700155 2014] [mpm_winnt:notice] [pid 1908:tid 376] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Feb 11 05:35:48.482657 2014] [mpm_winnt:notice] [pid 2764:tid 276] AH00364: Child: All worker threads have exited.

B) the pid/tid for these lines don't match between them like so:

Code:
[pid 2764:tid 276] AH00354: Child: Starting 64 worker threads.
[...]
[pid 2764:tid 276] AH00364: Child: All worker threads have exited.

vs. your log
Code:
[pid 3264:tid 300] AH00354: Child: Starting 64 worker threads.
[pid 2492:tid 308] AH00364: Child: All worker threads have exited.
Back to top


Reply to topic   Topic: Apache 2.4.7 not answering on Windows Server 2012 View previous topic :: View next topic
Post new topic   Forum Index -> Apache