B
B
buydofegni2019-01-23 09:23:18
PHP
buydofegni, 2019-01-23 09:23:18

What user should PHP-FPM run under for better security?

A question about the correct and secure configuration of the CentOS 7 + Nginx + PHP-FPM bundle
nginx runs as the nginx user < Someuser
/var/www/someuser root folder < Site root What user should php-fpm be configured for? If you configure it so that php-fpm works under someuser, then everything is fine, but is it safe?
/var/www/someuser/www/somesite/

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
ivankomolin, 2019-01-23
@ivankomolin

www-data

A
Alexey, 2019-01-23
@AlexeyVi

In fact, Nginx has nothing to do with php-fpm, it doesn’t call it, it proxies it, so it’s enough to create a user (although now when installing php-fpm in many distros, it registers itself during installation) and create rights to the directory with the site

Y
Yas124, 2019-01-24
@Yas124

For example: nobody

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question