• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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