PHP APC on/off at Virtual Host level
I've searched around but can't find any answers on how to make this change.
Each site/domain is run as a different user so I have a pool for each site.
Any insight would be appreciated. Any more info, please let me know. Thanks
4 Replies
apc.cache_by_default = off
in your main php.ini (or /etc/php.d/apc.ini if you use that) and
php_flag[apc.cache_by_default] = on
in the conf files for the pools you want to use it with.
Main php.ini: /etc/php5/fpm/php.ini, should have
"
Each site has:
/etc/php5/fpm/pool.d/mydomain.conf, and I should add
"
Anything need to be done with /etc/php5/mods-available/apc.ini
"apc.cachebydefault = off"
After adding this and restarting php, the apc.php page still shows apc.cachebydefault = 1.
–-------------------------------
Tried also puttinv apc.cachebydefault = 1 in /etc/php5/mods-available/apc.ini, restarted and same thing, apc.php and info.php still says it is on by default.