ispCP - Board - Support
running APC php-caching for all virtual hosts? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: running APC php-caching for all virtual hosts? (/thread-2247.html)



running APC php-caching for all virtual hosts? - psygarden - 01-28-2008 12:26 AM

I've always used APC php caching for acceleration of complex php sites (some of my sites are a combination of 3 embedded cms's)

now i've installed apc in my global php.ini (/etc/php5/php.ini) and it's up and running, but i have the impression that it's not loading the amount of items it did on my previous server...

When i look at the cached items i'm missing quite a few of the larger elements that it used to cache on my previous server (without fcgi/ispcp/...)

Question: do i have to enable the module in all my site specific php.ini files?

And if this is the case, i assume i should divide the amount of available memory for the caching among all the sites?

greetings,
Rik


RE: running APC php-caching for all virtual hosts? - raphael - 01-28-2008 02:07 AM

yes and yes


RE: running APC php-caching for all virtual hosts? - psygarden - 01-28-2008 09:19 AM

raphael Wrote:yes and yes

thanks Smile

since i'm dividing memory here, does this also mean that i don't load in the general php.ini , and only in the site-specific php.ini files ?


RE: running APC php-caching for all virtual hosts? - raphael - 01-29-2008 01:33 AM

that's right. /etc/php5/cgi/php.ini isn't used at all by ispCP

Because of security reasons I don't recommend using the same shared cache for all the customers