Answer the question
In order to leave comments, you need to log in
How to properly organize security for a web server on CentOS 7?
Given: VPS, CentOS, Nginx, PHP7 (FPM), MariaDB.
There is a project /var/www/theproject.
Any specialization aside, are there tried and tested safe settings for this configuration?
I mean the following:
1. How should the users and groups of the nginx, php-fpm, project be distributed? (i.e. from whom the process is launched, and who belongs to which group)
2. Where is the correct location for the project folder, under whose rights and what permissions for files and folders should there be?
3. Do I need to disable SELinux?
4. Or am I doing everything wrong and docker should be used ?
Answer the question
In order to leave comments, you need to log in
1. How should users and groups of nginx, php-fpm, project be distributed? (i.e. from whom the process is launched, and who belongs to which group)already properly distributed.
2. Where should the project folder be located correctly, under whose rights and what permissions for files and folders should there be?It is desirable to have a separate dedicated section so that you can tweak all sorts of nosuid, nodev in the mount options. Although it will do. The nginx user or whoever else is there.
3. Do I need to disable SELinux?Not necessary. If you know how to cook it, then everything else is not needed.
4. Or am I doing everything wrong and docker should be used?The isolation that docker provides is not its main function.
3. Do I need to disable SELinux
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question