• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue I can only get OPcache to work with PHP7...

Richard18

Basic Pleskian
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:
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.
 
Back
Top