I'm new to nginx, but over the past couple of days I've been learning about the features and all it has to offer. I'm running nginx in Centos 6.3.
I've installed nginx with php-fpm but have a few questions about users and groups.
When I install nginx it sets the user/group to nginx. I've set up my box to have all the server block accounts (vhosts) in /accounts/example.com/public_html. Right now the folders are all owned by root/root do I need to change any of the folders to nginx/nginx?
Setting up php-fpm pool accounts. I have one php-fpm conf file located in the /etc/php-fpm.d folder that is called www.conf. The user and group in that file are www/www. I'm assuming that this is the default conf file if I'm not running pools. If I don't run pools should the user/group change to nginx/nginx?
If I'm going to be running php-fpm pools should the user in the /etc/php-fpm.d/domainname.conf reflect the same user/group that I set up in question 1.
Should the user/group listed in the nginx.conf be the same as the php-fpm config?
I'm really confused about the user and groups setup for vhosts (I know that is an apache term) I'm just trying to figure what user/groups I have to add, what folder permissions I have to change... etc.
If someone could just give me a little FYI on what folders need to have what permissions on the setup I have running it would help me a lot. Everyone of the tutorials on the web seem to pass over user/group/folder permissions except when it's a log file/folder.
Any help would be much appreciated! Thanks!