Am I doing something obviously wrong? The opcache extension handler is enabled for both PHP7 and PHP5 in 'PHP Settings' in Plesk.
In the 'additional directives' part of PHP settings for the subscription I've added:
If I switch the subscription to use PHP7 (7.0.12), the cache files are generated, if I delete the cache files and switch the subscription to run PHP 5 (5.6.27) no cache files are ever generated.
If I swap it back to PHP7, the cache files are generated.
Plesk 12.5.30 MU#50
Ubuntu 14.04.5
PHP running as FPM application served by Apache.
In the 'additional directives' part of PHP settings for the subscription I've added:
Code:
zend_extension=opcache.so;
opcache.enable=1;
opcache.memory_consumption=64;
opcache.interned_strings_buffer=8;
opcache.max_accelerated_files=3000;
opcache.revalidate_freq=180;
opcache.fast_shutdown=0;
opcache.enable_cli=0;
opcache.revalidate_path=0;
opcache.validate_timestamps=2;
opcache.max_file_size=0;
opcache.file_cache=/var/www/vhosts/domain/.opcache;
opcache.file_cache_only=1;
If I switch the subscription to use PHP7 (7.0.12), the cache files are generated, if I delete the cache files and switch the subscription to run PHP 5 (5.6.27) no cache files are ever generated.
If I swap it back to PHP7, the cache files are generated.
Plesk 12.5.30 MU#50
Ubuntu 14.04.5
PHP running as FPM application served by Apache.