I have PHP FPM 5.5 running with Opcache - below are my Opcache settings (very standard):
; Opcache Configuration
opcache.enable=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=50000
opcache.fast_shutdown=1
opcache.revalidate_freq=120
Under PHP FPM I have a number of different domains running that have different pools using dynamic to start a min/max etc number of processes - this is running fine.
I wanted to ask: does opcache run per domain like APC?
Its been hard to find any information on the per domain factor of Opcache.
thankyou
If you want to use OpCache per domain (VirtualHost) you have to create php-wrapper for every domain and set PHPRC variable with different directory to php.ini.
Two wrappers for two VirtualHosts:
foo wrapper - /var/www/foo/cgi-bin/php5-wrapper:
and create /etc/php5/foo/php.ini file
bar wrapper - /var/www/bar/cgi-bin/php5-wrapper:
and create /etc/php5/bar/php.ini file
You can simply test it.
It's working for php-fcgid.