I have a Debian machine where I use both apache2 (with mod_proxy) and Lighttpd (for a long-polling service and static contents).
Both apache and lighttpd run php5, with APC.
Lighttp use FastCGI for php5.
Now, both environment works well, but the APC cache are separated, is there a way to tell lighttpd and apache to use the same APC cache?
Example of what I want to obtain:
//example.com, served by apache2:
<?php
apc_add('foo', 'bar');
echo apc_fetch('foo');
//output: bar
?>
//polling.example.com, served by lighttpd:
<?php
echo apc_fetch('foo');
//output desired: bar
//actual output: nothing!
?>
p.s: I think this belongs to server fault, if not, I'll post on Stackoverflow.
EDIT: After reading the answer from Dan, and searching also on stackoverflow, it's clear that at the moment APC cache CAN'T BE SHARED, when someone need this point, another cache system must be chosen (as memcache, that is slower than APC
Feel free to close this question if considered a SO duplicate.