Probleme mit Opcache Konfiguration bei Red Hat 7

Hallo,

wir haben einen Red Hat 7 Enterprise Server. Hier habe ich die PHP Version 7.2 installiert.
Nun bekomme ich in Nextcloud folgende Meldung:

Der PHP-OPcache ist nicht richtig konfiguriert.

Folgende Module habe ich installiert:

PHP 7.2.11 (cli) (built: Oct 10 2018 10:00:29) ( NTS )
Copyright © 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.2.11, Copyright © 1999-2018, by Zend

ich komme leider nicht drauf, warum das nicht gehen sollte. Anscheinend wird das Modul erkannt!
Die Konfig sieht so aus:

/etc/php.d/10-opcache.ini

; Enable Zend OPcache extension module
zend_extension=opcache

; Determines if Zend OPCache is enabled
opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=1

; The OPcache shared memory storage size.
opcache.memory_consumption=128

; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 1000000 are allowed.
opcache.max_accelerated_files=10000

opcache.revalidate_freq=60

; Enables or disables file search in include_path optimization
;opcache.revalidate_path=0

; If disabled, all PHPDoc comments are dropped from the code to reduce the

; size of the optimized code.
opcache.save_comments=1

; If enabled, a fast shutdown sequence is used for the accelerated code
; Depending on the used Memory Manager this may cause some incompatibilities.
opcache.fast_shutdown=1

Für eure hilfe wäre ich dankbar.

Was mir noch Aufgefallen ist, die 10-opcache.ini gibt es noch in folgendem Verzeichnis:

/etc/php-zts.d

Kann mir jemand erklären warum?

Configuration File (php.ini) Path /etc/opt/remi/php72
Loaded Configuration File /etc/opt/remi/php72/php.ini

Hallo Community,

ich konnte das Problem lösen.
Die Anpassungen für die PHP Konfig habe ich im falschen Verzeichnis gemacht.
Ich habe die Datei hier angepasst, dann war das Problem behoben:

/etc/opt/remi/php72/php.d
10-opcache.ini

Falls jemand das gleiche Problem hat, kann er hier schauen :slight_smile: