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 is showing blank pages after some hours
Author
dg



Joined: 18 Feb 2016
Posts: 6

PostPosted: Thu 18 Feb '16 12:55    Post subject: Apache is showing blank pages after some hours Reply with quote

Hi guys,

at some of our clients I run into some problems with the new apache/php combo (Apache/2.4.18 (Win32) PHP/7.0.3). I can not reproduce the error. The client is using mobile handhelds (ie6 engine, ie7 engine) to access a webapplication running on the webserver which is connected to an oracle database. At some point it just stops working and everyone is getting blank pages.

System is a virtual machine running Windows 2008 R2 64bit. I already tried to connect to the server via teamviewer and check the situation there (running a browser locally and accessing localhost) which ended the same way, all I got was a blank page. Same happended when I created a file showing the phpinfo so its not the database.

I already changed the loglevel of apache to debug but I don't get any errors when the error occurs (no php errors either):

Code:
[Thu Feb 18 07:52:36.662211 2016] [authz_core:debug] [pid 4492:tid 932] mod_authz_core.c(806): [client 192.168.170.108:49165] AH01626: authorization result of Require all granted: granted, referer: http://192.168.169.162/start.php?id=8
[Thu Feb 18 07:52:36.662211 2016] [authz_core:debug] [pid 4492:tid 932] mod_authz_core.c(806): [client 192.168.170.108:49165] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.169.162/start.php?id=8
[Thu Feb 18 07:52:36.833816 2016] [authz_core:debug] [pid 4492:tid 932] mod_authz_core.c(806): [client 192.168.170.108:49165] AH01626: authorization result of Require all granted: granted
[Thu Feb 18 07:52:36.833816 2016] [authz_core:debug] [pid 4492:tid 932] mod_authz_core.c(806): [client 192.168.170.108:49165] AH01626: authorization result of <RequireAny>: granted
[Thu Feb 18 07:52:36.927419 2016] [deflate:debug] [pid 4492:tid 932] mod_deflate.c(851): [client 192.168.170.108:49165] AH01384: Zlib: Compressed 13618 to 3690 : URL /start.php
[Thu Feb 18 07:52:37.738645 2016] [authz_core:debug] [pid 4492:tid 932] mod_authz_core.c(806): [client 192.168.170.108:49165] AH01626: authorization result of Require all granted: granted, referer: http://192.168.169.162/start.php?id=8
[Thu Feb 18 07:52:37.738645 2016] [authz_core:debug] [pid 4492:tid 932] mod_authz_core.c(806): [client 192.168.170.108:49165] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.169.162/start.php?id=8
[Thu Feb 18 08:02:27.265940 2016] [mpm_winnt:notice] [pid 2600:tid 472] AH00422: Parent: Received shutdown signal -- Shutting down the server.


after 07:52 everyone was getting blank pages. 08:02 was apache restart. After a restart everything is working again. That happens like once a day but ends up in 50 people who can't work until someone is reached to restart the webserver which isn't a nice situation.

Access log around that time isn't showing anything different:

Code:
192.168.170.108 - - [18/Feb/2016:07:52:33 +0100] "GET /start.php?id=8 HTTP/1.1" 200 4158
192.168.170.108 - - [18/Feb/2016:07:52:36 +0100] "POST /ajax/ajax_db_execute.php HTTP/1.1" 200 31
192.168.170.108 - - [18/Feb/2016:07:52:36 +0100] "GET /start.php?id=8 HTTP/1.1" 200 3708
192.168.170.108 - - [18/Feb/2016:07:52:37 +0100] "GET /tools/zeigebild.php?vp_nr=6922543 HTTP/1.1" 200 17993
192.168.170.109 - - [18/Feb/2016:08:02:38 +0100] "POST /ajax/ajax_db_execute.php HTTP/1.1" 200 31
192.168.170.115 - - [18/Feb/2016:08:02:32 +0100] "GET /start.php?id=15 HTTP/1.1" 200 2431
192.168.170.109 - - [18/Feb/2016:08:02:38 +0100] "POST /ajax/ajax_db_execute.php HTTP/1.1" 200 31


After 07:52 request were made but not shown in the access.log. So it just stops working at all without any errors.

Configs are pretty much default beside paths and logging. Only changes are some modules at the http.conf, php and compression:

Code:
LoadModule deflate_module modules/mod_deflate.so
LoadModule filter_module modules/mod_filter.so

LoadModule php7_module "c:/ApachePHP/php/php7apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/ApachePHP/php"

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain text/html text/xml
    AddOutputFilterByType DEFLATE text/css text/javascript
    AddOutputFilterByType DEFLATE application/xml application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript application/x-javascript

    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>


inside the php.ini is quite the same. It's the default production php.ini with some minor modifications:

Code:
max_execution_time = 240
extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client


we were running Apache/PHP (Apache 2.2.22/PHP 5.4.Cool before with quite the same configuration without any problems. But as far as we plan to update our webapplication which will require PHP 7 theres no option to switch back to the old configuration.

Maybe someone has an idea or ran into the same problem before? I already searched like the whole web but everyone who runs into problems like this has these problems all the time and not after the server is working for 10-20 hours without any problems + no errorlogs.
Back to top
Steffen
Moderator


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

PostPosted: Thu 18 Feb '16 13:01    Post subject: Reply with quote

Did you tried the settings in httpd.conf :

AcceptFilter http none
AcceptFilter https none
EnableSendfile off
EnableMMAP off

?
Back to top
dg



Joined: 18 Feb 2016
Posts: 6

PostPosted: Thu 18 Feb '16 14:07    Post subject: Reply with quote

Thanks Steffen,

EnableSendfile off should be default. I'm gonna try "AcceptFilter and EnableMMAP off" although I'm kinda curious why the server stops working.

I like to understand what happens and not paste stuff in order to fix it without knowing why the problem exists and why the stuff I add to the config is solving the problem cause it works with the current config for like 20 hours without any problems.

If it is about those settings and nothing else have changed on the system I would think that the default values changed within those versions but that is (according to the comments inside the http.conf) not the case.
Back to top
Steffen
Moderator


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

PostPosted: Thu 18 Feb '16 14:55    Post subject: Reply with quote

With every announcement here, there is a note about these setting, for example https://www.apachelounge.com/viewtopic.php?t=6901

Years of discussions on the dev list and investigating by Microsoft has still no result what the cause is of the AcceptEx failed issue on some systems/network.
Back to top


Reply to topic   Topic: Apache is showing blank pages after some hours View previous topic :: View next topic
Post new topic   Forum Index -> Apache