Nginx not logging errors...

X3 Sphere lists at
Wed Feb 4 10:00:47 MSK 2009

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;
>             fastcgi_index  index.php;
>             fastcgi_param  SCRIPT_FILENAME 
> /srv/www/nginx/$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.
Posted via

More information about the nginx mailing list