I am running apache2 and lighthttp paralell on the same machine. Both use php as fast_cgi and that works fine, until i enable APC. Then lighty fails with:

PHP Startup: apc_mmap: mmap failed.

and

the fastcgi-backend /usr/bin/php5-cgi failed to start: 2011-06-06 14:50:12: (mod_fastcgi.c.1061) terminated by signal: 11 2011-06-06 14:50:12: (mod_fastcgi.c.1066) to be exact: it segfaulted, crashed, died, ... you get the idea. 2011-06-06 14:50:12: (mod_fastcgi.c.1068) If this is PHP, try removing the bytecode caches for now and try again. 2011-06-06 14:50:12: (mod_fastcgi.c.2733) ERROR: spawning fcgi failed.

Seems that both try to use the same APC.

Is it possible to let them both use APC or can i tell the lighty php, which is actually the same as apache, not to use APC

link|improve this question
btw if i start lighty first then apache restart fails for the same reason – ivoba Jun 16 '11 at 14:41
i can start lighty at least when i turn off apc in the php.ini. after lighty -without apc- is running i switch it on again in the php.ini so that after a apache restart apache still has apc – ivoba Jun 16 '11 at 14:45
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.