Nginx not logging errors...

Igor Sysoev is at rambler-co.ru
Wed Feb 4 10:13:45 MSK 2009


On Wed, Feb 04, 2009 at 08:00:47AM +0100, X3 Sphere wrote:

> X3 Sphere wrote:
> > Ilan Berkner wrote:
> >> I don't see an immediate issue with it, but I just don't think that 
> >> Nginx is
> >> the problem in terms of php errors.  What about permissions on the error
> >> directory?
> > 
> > The permissions are correct, I have both the access and error logs in 
> > the same directory. The access logs are being written to so no problem 
> > there.
> > 
> > Is there anything I should add to the FastCGI section in nginx.conf?
> > 
> >         location ~ \.php$ {
> >             fastcgi_pass   127.0.0.1:9000;
> >             fastcgi_index  index.php;
> >             fastcgi_param  SCRIPT_FILENAME 
> > /srv/www/nginx/domain.com/http$fastcgi_script_name;
> >             include        fastcgi_params;
> >         }
> 
> 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.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list