cPanel 60 with EasyApache4
php7 + php-fpm + OPCache
I see /opt/cpanel/ea-php70/root/etc/php.d/10-opcache.ini has directives to in place enable and configure OPCache, and phpinfo page shows that the file was parsed in scan for additional .ini files yet OPCache is not showing up as enabled...?
I did get OPCache working at one point - had just reinstalled the module and it seemed to just start working - however, at that point I was unable to change the settings (eg. opcache.fast_shutdown=1) at all despite apache restarts after every attempt (tried /opt/cpanel/ea-php70/root/etc/php.d/10-opcache.ini /opt/cpanel/ea-php70/root/etc/php.d/local.ini /opt/cpanel/ea-php70/root/etc/php.ini and even /usr/local/lib/php.ini). I tried editing the files manually and also tried the MultiPHP INI Editor.
Since then I managed to break things somehow while trying to get a config change to happen and OPCache is no longer working... will likely need to reinstall stuff.
I have a well-known managed hosting provider for this server yet, so far, they seem to be having a hard time answering the Qs below in a way that works... I'm starting to wonder if something is not functioning properly.
So, the Qs are (EA4 w/ PHP7):
1) best practice how/where to enable OPCache once installed?
2) best practice how/where to change/add settings (eg. opcache.memory_consumption=) once enabled?
php7 + php-fpm + OPCache
I see /opt/cpanel/ea-php70/root/etc/php.d/10-opcache.ini has directives to in place enable and configure OPCache, and phpinfo page shows that the file was parsed in scan for additional .ini files yet OPCache is not showing up as enabled...?
I did get OPCache working at one point - had just reinstalled the module and it seemed to just start working - however, at that point I was unable to change the settings (eg. opcache.fast_shutdown=1) at all despite apache restarts after every attempt (tried /opt/cpanel/ea-php70/root/etc/php.d/10-opcache.ini /opt/cpanel/ea-php70/root/etc/php.d/local.ini /opt/cpanel/ea-php70/root/etc/php.ini and even /usr/local/lib/php.ini). I tried editing the files manually and also tried the MultiPHP INI Editor.
Since then I managed to break things somehow while trying to get a config change to happen and OPCache is no longer working... will likely need to reinstall stuff.
I have a well-known managed hosting provider for this server yet, so far, they seem to be having a hard time answering the Qs below in a way that works... I'm starting to wonder if something is not functioning properly.
So, the Qs are (EA4 w/ PHP7):
1) best practice how/where to enable OPCache once installed?
2) best practice how/where to change/add settings (eg. opcache.memory_consumption=) once enabled?
Last edited: