• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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