nginx and php-fpm socket owner

前端 未结 7 1338
孤城傲影
孤城傲影 2020-12-24 14:27

After an update of my system I ran into a bad gateway error of my PHP apps running on Nginx.

1 connect() to unix:/var/run/php-fcgi-vhostname-php-fcgi-

相关标签:
7条回答
  • 2020-12-24 15:23

    Hello every one and thanks for help, in my case with Ubuntu server 14.04 nginx and php5-fpm the problem with php-fpm socket owner by root solved by editing the file /etc/php5/fpm/pool.d/www.conf Uncomment the lines:

    listen.owner = www-data
    listen.group = www-data
    listen.mode = 0660
    

    From a clear installation nginx owner and group is www-data. I think that the best practice is to look /etc/nginx/nginx.conf and verify that in first line is:

    user www-data;
    

    And use the default user, Chears !

    0 讨论(0)
提交回复
热议问题