Welcome! Log In Create A New Profile

Advanced

Re: Permission Denied Error

Maxim Dounin
April 21, 2012 06:34PM
Hello!

On Sat, Apr 21, 2012 at 12:27:40AM +0530, Sparsh Gupta wrote:

> 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
>
> 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?

They are overriden. But if you change user/group set in config you
have to fix permissions on already created subdirs (or just remove
them, nginx will re-create them with correct permissions).

Maxim Dounin

>
> Sparsh Gupta
>
>
> On 20 April 2012 18:36, Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> > Hello!
> >
> > On Fri, Apr 20, 2012 at 05:27:40PM +0530, Sparsh Gupta wrote:
> >
> > > I am seeing some error like below in my nginx error log:
> > >
> > > 2012/04/20 11:51:52 [crit] 21437#0: *2548 open()
> > > "/var/cache/nginx/fastcgi_temp/5/00/0000000005" failed (13: Permission
> > > denied) while reading upstream, client: 139.112.144.210, server:
> > example.com,
> > > request: "GET /index.php HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000
> > ",
> > > host: "example.com", referrer: "http://example.com/"
> > >
> > > I have: user www-data; in my nginx.conf and
> > > the owners of the /var/cache/nginx/fastcgi_temp/5/00 are 'nginx:nginx'
> > >
> > > How can I fix this?
> >
> > With chown(1), see "man chown" for details.
> >
> > Maxim Dounin
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >

> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

Permission Denied Error

Sparsh Gupta April 20, 2012 08:00AM

Re: Permission Denied Error

Maxim Dounin April 20, 2012 09:08AM

Re: Permission Denied Error

Sparsh Gupta April 20, 2012 03:00PM

Re: Permission Denied Error

Cliff Wells April 21, 2012 06:30PM

Re: Permission Denied Error

Maxim Dounin April 21, 2012 06:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 231
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