B
B
bernex2014-04-14 11:56:49
Nginx
bernex, 2014-04-14 11:56:49

Setting up nginx + php-fp and user rights

How to configure it seems clear, but what to do with different domains?
Under everyone to create the user?
What are the rights to the folder?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
bernex, 2014-04-14
@bernex

I will try, thanks.
How else then to configure the rights for mysql? By standard?

A
Alexander Batalov, 2014-04-14
@radist2s

I have a small gist to generate the pool and nginx config. If the generation functions are redundant, then look at nginx-vhost.bone and phpfpm-pool.bone. Change all % variables% inside to values ​​corresponding to your environment. For phpfpm-pool.bone, pay attention to memory limits, process limits, and maximum file upload size. Some parameters are also commented out there, like listen - there you can choose what to listen (port or socket), respectively, you need to change the "upstream" proxy to nginx.
Well, as @sim3x noted , you need to " add the nginx user to the site group ".
That is, if you create a user for php-fpm with the name "super_site_user", then add the www-data user to the super_site_user group (under normal circumstances, it is created along with the user) (you need to specify the user name in /etc/nginx/nginx.conf - parameter user).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question