Answer the question
In order to leave comments, you need to log in
How to set up fpm in conjunction with nginx?
Hello.
I would like to clarify how to configure fpm (in terms of security) in conjunction with nginx. One question is of interest: how to make the created files (easier than asking, if expressed incorrectly) be available for editing / deletion by the current user. Initial data:
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
user = user
group = www-data
Answer the question
In order to leave comments, you need to log in
Who is the "current user"? Some person who interactively logs into the server via SSH/FTP and touches files?
In this case, you should not add him to the technical group www-data
- because this can give him access to common configs and the ability to steer services, but vice versa - www-data
add a user to the user group so that the web server and PHP can touch his files, but not vice versa.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question