My concern was that when I have user www-data; mentioned in my config file, why is nginx creating files for fastcgi_temp with user nginx and group nginx<div><br></div><div>I understand thats the default user:group while compiling was nginx:nginx but shouldn't they be overridden by the option provided in nginx runtime configuration file?</div>
<div><br></div><div>Sparsh Gupta<br>
<br><br><div class="gmail_quote">On 20 April 2012 18:36, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>
<div><div class="h5"><br>
On Fri, Apr 20, 2012 at 05:27:40PM +0530, Sparsh Gupta wrote:<br>
<br>
> I am seeing some error like below in my nginx error log:<br>
><br>
> 2012/04/20 11:51:52 [crit] 21437#0: *2548 open()<br>
> "/var/cache/nginx/fastcgi_temp/5/00/0000000005" failed (13: Permission<br>
> denied) while reading upstream, client: 139.112.144.210, server: <a href="http://example.com" target="_blank">example.com</a>,<br>
> request: "GET /index.php HTTP/1.0", upstream: "fastcgi://<a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>",<br>
> host: "<a href="http://example.com" target="_blank">example.com</a>", referrer: "<a href="http://example.com/" target="_blank">http://example.com/</a>"<br>
><br>
> I have: user www-data; in my nginx.conf and<br>
> the owners of the /var/cache/nginx/fastcgi_temp/5/00 are 'nginx:nginx'<br>
><br>
> How can I fix this?<br>
<br>
</div></div>With chown(1), see "man chown" for details.<br>
<br>
Maxim Dounin<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>