Answer the question
In order to leave comments, you need to log in
Differentiation of rights on the server?
There is a simple VPS, several sites (not large) will spin on it. The software used is Debian 6, php-fpm, mysql5, nginx.
Each site has its own user in the system. I'm interested in how to configure PHP-FPM properly so that the script for a specific host is executed from under the user corresponding to the host.
Answer the question
In order to leave comments, you need to log in
You need to create a separate pool for each host. Each pool is in a separate file in /etc/php5/fpm/pool.d, this file contains the user and group from which the scripts are run.
For example, like this:
Directly in the host config in pool.d.
[site.ru]
user = site.ru
group = site.ru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question