Why are all the error logs of the lnmp schema php printed into the nginx log?

I have changed everything in

php.ini:
error_reporting = E_ALL
display_errors = Off
log_errors = On
error_log = / var/errors.log

but errors.log is blank, and errors are not logged.
then I found the error message of php in the error log of nginx. Why? How should I correct the error if I want to record it in the specified log?

May.07,2021

I don't know what system you're using, so I'll assume it's linux (I use ubuntu):

).

1. After modifying the php.ini configuration, remember to restart the fpm service. Remember to find the right php.ini, because some linux distributions have different php.ini, for different sapi. You have to find fpm SAPI's php.ini
2. Secondly, if this file does not exist, please try to create it manually. Don't wait for php to create it for you. He may not create
3 for you. Then, after the creation is completed, it is recommended that you first give the file maximum permissions, and then deliberately write an error in the php project to see if you can record the error in this file
4. If there is no problem, it is recommended that you narrow the permissions of the file. In fact, you can give chown to the user group / user of fpm

.

the error I recorded here:


is detailed.

  • Php exception cannot be caught?

    introduce the file b.php into the file a.php and execute a function c in b.php in a.php. At this point c throws an exception that cannot be caught in a. Environment: nginx,php-fpm. nginx Direct 502 excuse me. Post the code and error below: code in a...

    Mar.16,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be9420-31959.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be9420-31959.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?