How does nginx+php print the error log of php?

I modified the error_log path in php.ini. Restart php-fpm to check that phpinfo () is indeed modified successfully. It is true that the browser does not display an error when there is an error in
php, but there is no error message in the log file I set up. I don"t know what to do. Solve

May.07,2021

did you turn on the setting of the error level?
if all error monitoring is turned off, there is still no data in the log file.

/usr/local/php/etc/php.ini
---------------------------
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
log_errors = On
; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://php.net/error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on Windows).
;error_log = syslog
  • the generation directory of the error_log error log
  • error_reporting production environment error level should be fully on
  • display_errors does not display errors on the page
  • log_errors opens error log

Please move to https://codeshelper.com/a/11.

for a specific description.

Log permissions are not set properly. Opening log permissions succeeds

  • Php-fpm profile issu

    my php-fpm.conf configuration file is as follows: include *conf php.fpm.dconf I set an array variable in m.beike.conf ;DB env[DB_HOST] = 127.0.0.1 env[DB_NAME] = test .... you can t get it through $_ server [DB _ HOST] in the php code. ...

    Mar.18,2021
Menu