I upgraded my Debian7 to Debian10 yesterday, and changed from prefork to mpm_event with php-fpm (php 7.4)
The error messages and error_log output, is shown in my /apache/error.log file as: I've replaced filenames, ip and port.
[Tue May 19 11:26:38.506805 2020] [proxy_fcgi:error] [pid 28334:tid 139811391133440] [client (ip):(port)] AH01071: Got error 'PHP message: PHP Notice: Undefined variable: SQL_ERROR in (file) on line 198PHP message: PHP Notice: Undefined variable: SQL_ERROR in (file) on line 200PHP message: PHP Notice: Undefined variable: SQL_ERROR_MSG in (file) on line 201PHP message: PHP Notice: Undefined variable: SQL_command in (file) on line 202'
And all errors are buffered, and output on the same line (quite difficult to debug).
php-fpm uses www-data user
error.log has 640 permissions with www-data:www-data
php-fpm/pool.d/www.conf got the error.log = /var/log/apache2/error.log
Do you have any suggestions, as to why i'm not getting the error logs directly in the error.log file?
Edit: All PHP configs is from a clean install.