5

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 my php.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() ?>
4
  • 2
    Some log output would greatly help. First thing that comes to mind is some sort of PHP error is happening but not being displayed. What are your error logging/display settings?
    – WerkkreW
    Oct 25, 2011 at 17:39
  • I agree, this is not enough info.
    – Till
    Nov 25, 2011 at 16:16
  • Btw, I'm not saying APC is not to blame, but before you blame a specific extension, I'd disable all others (especially xdebug) and try one by one if you can reproduce the hangs.
    – Till
    Nov 25, 2011 at 16:56
  • Please have a look at my comment on serverfault.com/a/407436/128197. Hope this helps :)
    – Rashy
    Jul 13, 2012 at 10:05

3 Answers 3

1

APC and xdebug generally don't play well together in my experience. I suspect it will run fine with APC if you disable xdebug.

0

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.

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .