Welcome! Log In Create A New Profile

Advanced

NGINX + PHP-FPM error logs miss IP

Szépe Viktor
September 03, 2014 04:26PM
Could it be that Apache 2.2 + mod_fastcgi + PHP FPM logs IP addresses
to errror.log
but NGINX + PHP-FPM does not?

I mean not to a log file specified in error_log configuration option.

[03-Sep-2014 19:37:24 UTC] {message from e.g. error_log()}

*no IP address in the the line

After commenting out `error_log` config option, stdout got back to nginx

2014/09/03 22:14:15 [error] 8831#0: *1 FastCGI sent in stderr: "PHP
message: File does not exist: errorlog_url_hack
(s:59:"//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js";)
PHP message: File does not exist: nofollow_robot_trap
PHP message: File does not exist: nofollow_robot_trap
PHP message: File does not exist: nofollow_robot_trap
PHP message: File does not exist: nofollow_robot_trap
PHP message: File does not exist: nofollow_robot_trap
PHP message: File does not exist: nofollow_robot_trap" while reading
response header from upstream, client: 192.168.12.135, server:
subdir.wp, request: "GET
//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js HTTP/1.1",
upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "subdir.wp"

Here is no separate message for every line, so more `error_log()`
function's output goes into on nginx error message. But there is a bit
about the IP: `client: 192.168.12.135`

Could you help me log IP addresses and log PHP's error messages as
separate messages?


Szépe Viktor
--
+36-20-4242498 sms@szepe.net skype: szepe.viktor
Budapest, XX. kerület




_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX + PHP-FPM error logs miss IP

Szépe Viktor September 03, 2014 04:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready