Nginx + Php-fpm Ownership issue !!

shahzaib shahzaib shahzaib.cb at gmail.com
Wed Dec 30 08:37:16 UTC 2015


Thanks for reply. However, our developer just notified us that the
directory with root owner was created by a cron which ran by user root and
created that issue though I've slightly modified nginx user directive with
following :

former
user www ;

later
user www www;

Regards.
Shahzaib

On Wed, Dec 30, 2015 at 12:59 PM, wishmaster <artemrts at ukr.net> wrote:

> Hi,
> >
> > Hi,
> >
> >
> > We've installed nginx + php-fpm on FreeBSD OS and both of them are
> listening on www user / group. Here is the config :
> >
> > NGINX :
> >
> > user www ;
> >
> >
> >
> > PHP-FPM :
> >
> >
> > [www]
> > listen = /var/run/www.socket
> > user = www
> > group = www
> > listen.owner = www
> > listen.group = www
> > listen.allowed_clients = 127.0.0.1
> >
>
> I think you have mistake in the owner ownership.
> Below my config for nginx + php-fpm bundle..
>
> ;;;;;;;;;;;;;;;;;;;;;;;; MY pool for Joomla CMS ;;;;;;;;;;
>
> [joomla1]
>
> user = www-joomla1
> group = www-joomla1
> listen = /var/run/php-fpm-joomla1.sock
>
> listen.owner = www-joomla1
> listen.group = www
> listen.mode = 0660
>
>
>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20151230/f9ced321/attachment.html>


More information about the nginx mailing list