• 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.

Resolved Configure Opcache for all domains

Kingsley

Silver Pleskian
Hello;

Since Opcache is enabled for each domain on the server by default i would like to know where to add the following settings.

Code:
zend_extension=opcache.so

opcache.memory_consumption=256
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.enable=1

Thanks
 
zend_extension=opcache.so
For PHP 7, for example, it is already defined in /opt/plesk/php/7.0/etc/php.d/10-opcache.ini

# grep opcache.so /opt/plesk/php/7.0/etc/php.d/10-opcache.ini
zend_extension=opcache.so

opcache.memory_consumption=256 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 opcache.enable=1
In the same /opt/plesk/php/7.0/etc/php.d/10-opcache.ini
 
For PHP 7, for example, it is already defined in /opt/plesk/php/7.0/etc/php.d/10-opcache.ini

# grep opcache.so /opt/plesk/php/7.0/etc/php.d/10-opcache.ini
zend_extension=opcache.so


In the same /opt/plesk/php/7.0/etc/php.d/10-opcache.ini

How do i restart the php-fpm so changes can take effect please
 
Back
Top