Cyberpanel + OPcache?

Hi,

I have installed OPCache in my cyberpanel, how do I enabled it? I have added this to php.ini in all php versions:

[opcache]
zend_extension=php_opcache.dll
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1

Is this enough? I have also seen this configurations, which would be the best one?

Config 3:
opcache.revalidate_freq=0
opcache.validate_timestamps=0 (comment this out in your dev environment)
opcache.max_accelerated_files=7963
opcache.memory_consumption=192
opcache.interned_strings_buffer=16
opcache.fast_shutdown=1

Config 4:
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=512
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=50000
opcache.max_wasted_percentage=15
opcache.use_cwd=1
opcache.validate_timestamps=1200
opcache.revalidate_freq=0
opcache.revalidate_path=1
opcache.save_comments=1
opcache.fast_shutdown=1
opcache.consistency_checks=1

Regards.

Comments

  • Hello,

    1. From CyberPanel -> PHP -> Install extension - you can install "lsphp56-opcache" (for php56).
    2. After the installation is complete and if you create one phpinfo file ( <?php phpinfo(); ?> ) you will see that opcache is loaded, enable and running.
    3. Personal config for opcache is in " /usr/local/lsws/lsphp56/etc/php.d/10-opcache.ini"
Sign In or Register to comment.
Support CyberPanel CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion