APC + php-cgi shared between child

Hi,

I’m running nginx as frontend to apache + mod_php with good results.
Apache has keepalive off and is running with few threads and with the
essential modules.

i made a few tests with php-cgi -d managed with supervisord and I like
it.

It seams faster and under load uses less memory than apache, I just
don’t know if APC is shared between child processes.

Is APC shared between php-cgi child processes?

Thanks

Nuno.

Posted at Nginx Forum:

Php-fpm is a bit easier to configure and offers a lot more than just
php-cgi -b. I would definitely check it out.

Thanks mike!

I’ll test this one → OpenID transaction in progress
Look’s easy to setup :slight_smile:

Posted at Nginx Forum:

On Friday of June 18 2010, nfn wrote:

Is APC shared between php-cgi child processes?

You may read this stuff:
http://ivoras.sharanet.org/blog/tree/2010-06-16.php-apc-and-shared-memory.html

regards

Marcin G., PGP 0x9F183FA3
jabber jid:[email protected], gg:2532994
http://the.fork.pl

On Friday of June 18 2010, nfn wrote:

Is APC shared between php-cgi child processes?

You may read this stuff:
http://ivoras.sharanet.org/blog/tree/2010-06-16.php-apc-and-shared-memory.html

I think it gives somewhat wrong impression (at least the author hasnt
given
explanation what way he runs the php - fastcgi itself doesnt tell a lot)
as
when you use the some kind of process manager (and don’t spawn the
processes
from webserver on each request) the shared memory is really shared (egg
the
mapping is done in the master process).

Can read also the comment from the linked bug in the article
PHP :: Request #57825 :: share cache between FAST CGI processes (at bottom) ( '[2010-06-13
23:45
UTC] rasmus at php dot net ’ )

rr