S
S
Sergey2012-01-29 18:13:01
PHP
Sergey, 2012-01-29 18:13:01

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

2 answer(s)
R
Riateche, 2012-01-29
Protko @Fesor

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.

A
ADOLF88HITLER, 2012-01-29
@ADOLF88HITLER

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 question

Ask a Question

731 491 924 answers to any question