My local development configuration:
- Apache 2.2.21 VC9 downloaded from Apache Lounge (as suggested at PHP For Windows website. Manual installation as service.
- PHP 5.3.8 VC9 x86 Thread Safe, installed manually from the zip file.
- PHP APC 20110109-5.3-vc9-x86 downloaded from here, then i added
extension=php_apc.dll
to myphp.in
. - Xdebug PHP 5.3 VC9 TS (32 bit), if relevant
Result: sometimes page hangs and i must restart Apache manually from services panel. Anyone lese experienced this? Is my configuration wrong? THis is happening even with a simple phpinfo
page:
<?php phpinfo() ?>
APC and xdebug generally don't play well together in my experience. I suspect it will run fine with APC if you disable xdebug.
Start by ruling out Apache - call 'php -m' to get a list of modules and see how responsive that is.
If it's slow, then you know PHP is to blame. Disable every module and enable each one at a time, running php -m to check response.
Pre 5.3.8 the curl extension caused similar woes, but that was corrected.
Use the apc.php file from apc package and use it to see how your APC is using memory.
Give it lot of ram, until he has 20% unused.