Änderungsprotokolldatei für php-fpm

Änderungsprotokolldatei für php-fpm

Um nur eine .logDatei im Zusammenhang mit PHP-Problemen zu haben, möchte ich php-fpmdas Schreiben von Fehlern in /var/log/php-fpm/error.logstatt in erzwingen /var/log/php-fpm/www-error.log.

Ich habe gerade das Update durchgeführt /etc/php-fpm.d/www.confund den Dienst /etc/php.d/10-opcache.inineu gestartet php-fpm, aber ich erhalte immer noch Fehler /var/log/php-fpm/www-error.log.

/etc/php-fpm.d/www.conf

...
; Default Value: nothing is defined by default except the values in php.ini and
;                specified at startup with the -d argument
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
;php_flag[display_errors] = off
;Comment by ME : php_admin_value[error_log] = /var/log/php-fpm/www-error.log
;Next line added by ME
php_admin_value[error_log] = /var/log/php-fpm/error.log
...

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

...
; OPcache error_log file name. Empty string assumes "stderr".
; Comment by ME : opcache.error_log = /var/log/php-fpm/www-error.log
; Next line added by ME
opcache.error_log = /var/log/php-fpm/error.log
...

Ich verwende Rocky Linux 9.1

Was vermisse ich?

verwandte Informationen