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