Given: VPS, CentOS, Nginx, PHP7 (FPM), MariaDB.
There is a project /var/www/theproject.
If you move away from all sorts of specializations, is there a time-tested safe settings for this configuration?
I mean the following:
1. How should be distributed the user and group nginx, php-fpm, of the project? (i.e., from whom the process runs, and who is in which group included)
2. Where to correctly place the project folder, under whose rights and what should be the permissions for files and folders?
3. Should I disable SELinux?
4. Or I do everything wrong and need to use docker?