Nginx not logging errors...

X3 Sphere lists at ruby-forum.com
Wed Feb 4 18:36:43 MSK 2009


Igor Sysoev wrote:
> On Wed, Feb 04, 2009 at 08:00:47AM +0100, X3 Sphere wrote:
> 
>> > 
>> A follow-up to this.. the permissions were set incorrectly on my 
>> php.errors file, it now logs fine.
>> 
>> However.. all the errors used to show up in the nginx logs (useful as I 
>> was able to log errors on a per domain basis). I'm not sure why this 
>> behavior changed.
> 
> What type do you mean ? In general nginx simply can not show php errors
> as they are in independent process.

Errors were showing up in the nginx logs, like this:

2009/02/01 09:49:22 [error] 22004#0: *466 FastCGI sent in stderr: "PHP 
Notice:  Undefined variable: template in 
/srv/www/nginx/domain.com/daos/system/index.php on line 45

Also, general http errors are not being written either. Before, if I 
tried to access a directory that did not exist, it would show in the 
error log. But it no long does this.

2009/02/01 11:13:35 [error] 22004#0: *13333 open() 
"/srv/www/nginx/domain.com/http/forums/test" failed (2: No such file or 
directory), client: 70.176.235.197, server: forums.domain.com, request: 
"GET /test HTTP/1.1", host: "forums.domain.com"

I'm having a hard time figuring out why it stopped as I haven't changed 
the config since then, aside from adding a couple more vhosts.
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list