奇妙な問題があります。私のnginxサーバーのエラーログはとにかく混乱しています。 PHPエラーはすべて1行に書き込まれ、再帰的に繰り返されるようです。このように、logは1日で数ギガバイトずつ増えました!
これは一行エラーログから:
2020/03/26 16:58:45 [error] 29816#29816: *32 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: SCRIPT_FILENAME in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 58PHP message: PHP Notice: Undefined variable: pfad in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 60PHP message: PHP Notice: Undefined offset: 1 in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 65PHP message: PHP Notice: Undefined variable: benutzer in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 70PHP message: PHP Notice: Undefined index: PATH_TRANSLATED in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 84PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on li
2048 文字以降は行が切り捨てられます。
ここでは、新しいエラーが発生する前に数行を分割しました。
2020/03/26 16:58:45 [error] 29816#29816: *32 FastCGI sent in stderr: "
PHP message: PHP Notice: Undefined variable: SCRIPT_FILENAME in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 58
PHP message: PHP Notice: Undefined variable: pfad in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 60
PHP message: PHP Notice: Undefined offset: 1 in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 65
PHP message: PHP Notice: Undefined variable: benutzer in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 70
PHP message: PHP Notice: Undefined index: PATH_TRANSLATED in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 84
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on line 96
PHP message: PHP Notice: Undefined variable: localdir in /var/kunden/webs/my_web_app/www/pics/userpics/index.php on li
これはどこから来るのですか? nginxで標準エラー報告をどのように定義しますか?
答え1
1ページのメッセージから1行のメッセージで発生するすべてのエラーに対して、nginxがfastcgiにバンドルされているようです。
スクリプトにこのような多くのエラーがある場合(PHPのアップグレードのため)、行は2048文字に切り捨てられます。