NC version 29.0.1
PHP version 8.2.19
Postgres version 13.14
Linux 5.10.0-29-amd64 x86_64
Apache version unknown, but I think it’s up to date
I am not really sure, where I should add these lines in order to prevent upcoming warnings about a not properly conficured OPcache extension:
php_value opcache.memory_consumption=256
php_value opcache.interned_strings_buffer=64
php_value opcache.max_accelerated_files=100000
php_value opcache.revalidate_freq=0
php_value opcache.save_comments=1
Should I add these lines either in the root directory of my NC
public_html/.htaccess
or should I add these lines in
public_html/config/.htaccess
?
j-ed
June 19, 2024, 12:02pm
2
These parameters are ususally set in the php.ini file and not the .htaccess file.
Nextcloud version (eg, 20.0.5): 27.1.4
Operating system and version (eg, Ubuntu 20.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): 2.4.57
PHP version (eg, 7.4): 8.2.7
The issue you are facing:
Admin Overview shows:
The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply opcache.interned_strings_buffer to your PHP configuration with a value higher than 8.
I’ve read up on this error in a number …
Warnmeldung:
Sicherheits- & Einrichtungswarnungen
Für die Sicherheit und Geschwindigkeit Ihrer Installation ist es von großer Bedeutung, dass sie richtig konfiguriert ist. Um Ihnen hierbei zu helfen werden einige automatische Tests durchgeführt. Weitere Informationen finden Sie in der verlinkten Dokumentation.
Es gibt einige Warnungen zu Ihrer Systemkonfiguration.
Das PHP OPcache-Modul ist nicht richtig konfiguriert. Weitere Informationen finden Sie in der Dokumentation .
…
But in my case, I have no access to php.ini file. The administrator of the server where my NC is hosted suggests in the user manual to alternatively modify .htaccess.
But in public_html/.htaccess I see in line 111:
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####
In public_html/config/.htaccess I do not see such a warning. Bus as far as I understand its content, that .htaccess file does provide only information for Apache.
j-ed
June 19, 2024, 1:05pm
4
Afaik most of the OPcache parameters need to be set on a general level and are not instance specific. Check-out the following postings which are related to your issue/request:
Oh, i’m sorry, found documentation to php that say admin flags cannot be modified in htaccess
That was stupid idea, sorry
Auch ich bekomme diese Fehlermeldung seit dem letzten Update auf 12.0.3. Ich habe im Gegensatz zu Cloudman den Server bei mir stehen und habe auch bereits in folgenden Dateien
/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini
folgende Änderungen vorgenommen:
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
Jedoch bekomme ich immer wieder die Fehlerm…
ernolf
June 19, 2024, 1:57pm
5
Look here please:
→ opcache.configuration ←
… behind every directive you see in the “Changeable” column, where you can place the directives. What the entries in that collumn mean is described here:
→ Where a configuration setting may be set ←
Much of the directives can be defined in the file .user.ini
in Nextclouds root folder.
That is definitely the wrong place!
Much and good luck,
ernolf