Welcome! Log In Create A New Profile

Advanced

Re: Primary script unknown error - can't figure out how to fix

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 6 KB open | download GreenGecko 01/08/2013 Read message
smime.p7s 6 KB open | download GreenGecko 01/08/2013 Read message
January 08, 2013 04:46PM
In my experience, that's usually caused by access to parent dirs...
ie /home is made unreadable by nginx user when changed to 750 root:root.

Cheers,

Steve

On Tue, 2013-01-08 at 22:39 +0100, Patrick Lists wrote:
> On 01/08/2013 09:09 PM, Francis Daly wrote:
> [snip]
> > Set "root" correctly in the nginx config. (Which is more or less the
> > same as "set the directory name correctly in the filesystem".)
>
> Thanks Francis. Another sharp pair of eyes and mine not so much. The
> error was introduced when redacting the configs to protect the innocent.
> The root in piwik.conf points correctly to the actual location of the
> site in /usr/share/nginx. I also tried turning off SELinux but that did
> not make a difference.
>
> I can make it work when I chmod all files to 644 and all directories to
> 755. But I do not understand why that is. If nginx and php-fpm are
> running as nginx/ningx shouldn't both be able to handle files & dirs
> owned by nginx/nginx with mode 640 and mode 750?
>
> Regards,
> Patrick
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Skype: sholdowa
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - smime.p7s (6 KB)
Subject Author Posted

Primary script unknown error - can't figure out how to fix

Patrick Lists January 08, 2013 02:10PM

Re: Primary script unknown error - can't figure out how to fix

GreenGecko January 08, 2013 02:46PM

Re: Primary script unknown error - can't figure out how to fix

Patrick Lists January 08, 2013 03:40PM

Re: Primary script unknown error - can't figure out how to fix

Francis Daly January 08, 2013 03:12PM

Re: Primary script unknown error - can't figure out how to fix

Patrick Lists January 08, 2013 04:40PM

Re: Primary script unknown error - can't figure out how to fix Attachments

GreenGecko January 08, 2013 04:46PM

Re: Primary script unknown error - can't figure out how to fix

Patrick Lists January 08, 2013 04:58PM

Re: Primary script unknown error - can't figure out how to fix Attachments

GreenGecko January 08, 2013 05:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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