How to make php5-fpm (fast cgi) work from another user in the docker container. PHP starts via supervisor.

[program:php5-cgi] command=/usr/sbin/php5-fpm -F 

    1 answer 1

    according to the documentation , you can use the user=пользователь directive. example:

     [program:php5-cgi] command=/usr/sbin/php5-fpm -F user=www-data 

    Of course, the supervisord process itself must be run as root .

    • In this case, it produces errors due to lack of rights. - Vladimir
    • who / what produces exactly which errors? - aleksandr barakin
    • In the logs it says that there are not enough rights to certain files. - Vladimir
    • one
      This is a completely different question, not having any relation to the current one that you have asked. - aleksandr barakin