helm
helm copied to clipboard
The PHP OPcache module is not properly configured
Hi, I'm trying to figure out the proper way to configure OPCache based on the helm chart.
I get the following warning in my administration panel:
The PHP OPcache module is not properly configured. See the [documentation ↗](https://docs.nextcloud.com/server/25/go.php?to=admin-php-opcache) for more information. The OPcache buffer is nearly full. To assure that all scripts can be hold in cache, it is recommended to apply opcache.memory_consumption to your PHP configuration with a value higher than 1024.
I am currently trying to configure my OPCache using these configs:
phpConfigs:
opcache.conf: |
php_admin_value[opcache.enable] = 1
php_admin_value[opcache.save_comments] = 1
php_admin_value[opcache.interned_strings_buffer] = 1000
php_admin_value[opcache.memory_consumption] = 1024
php_admin_value[opcache.max_accelerated_files] = 30000
php_admin_value[opcache.validate_timestamps] = 0
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[memory_limit] = -1
uploadLimit.ini: |
upload_max_filesize = 16G
post_max_size = 16G
max_input_time = 3600
max_execution_time = 3600
default_phone_region = US
www.conf: |
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9000
pm = dynamic
pm.max_children = 300
pm.start_servers = 10
pm.min_spare_servers = 6
pm.max_spare_servers = 18
pm.max_requests = 500
pm.process_idle_timeout = 10s
My nextcloud.log
shows this after startup: Zend OPcache can't be temporary enabled (it may be only disabled till the end of request)
What is the correct way to enable OPCache using the helm chart?