2

Okay, I just switched from an apache install with mod_ruid and php to an nginx install with php-fpm, now I was wondering how to secure this properly.

My old configuration with mod_ruid just had every site setup as a different linux user, and apache would run under this user when a request was made, and php also ran under this user.

However I have now switched to nginx and I'm kind of clueless as of how to run it properly, nginx needs to have access to all files and atm the files are all 700 or less, how would I set this up properly.

Another problem that's slightly unrelated I guess is that PHP-FPM apparently needs a pool of php processes for every user/group I run it under, is it possible to make em all use the same pool and just switch when needed ?

2 Answers 2

2

I 'solved' it by creating a PHP-FPM pool for every user, and running nginx as root, however I'm not entirely confident on that one (Alternatives are appreciated).

If I don't get any other answers I'll mark this one.

~Xeross

0

Why don't you leave www-data user? You just create an ftp user and add it to www-data group. Then chmod all the files with read/write perms for www-data group.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .