apache slow serving php pages
am 27.11.2007 23:12:03 von James DoughtyI experience the following problem: after a week or two of up-time my
apache web-server starts serving any PHP based pretty slowly, it takes
several seconds to build up the page. At the same time however it still
servers anything not PHP based (eg perl or html pages) really quick.
The biggest problem about that is that once it begins with the PHP
problems, a day or so later it usually comes to the point when it stops
serving any PHP pages at all - or rather it takes a really long time
(minutes) for anything to come through at all.
Restarting the apache service does not solve that problem.
My configuration: Win Server 2003, Apache 2.2.4, PHP 5.2.3
I use PHP as a module, with the following settings:
# PHP
LoadModule php5_module "c:/program files/php/php5apache2_2.dll"
PHPIniDir "c:/program files/php"
AddType application/x-httpd-php .php
Is this a known issue? It almost appears as if some cache is running
full and stalling everything else. If PHP was a service I would restart
it, but it isn't of course as it is a part of apache. The only thing
that solves the problem (for two weeks) is rebooting the machine.
Is there any way I can force PHP to flush everything? Any ideas what
causes this? Any solutions?
Cheers,
Erwin