nginx and php-fpm socket owner

前端 未结 7 1369
孤城傲影
孤城傲影 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:03

    everybody! That's my issue too. I just changed my fpm user to vagrant, restart my pools and ... it's done! Here comes my conf:

    user = vagrant
    group = nginx
    
    listen.owner = vagrant
    listen.group = nginx
    listen.mode = 0660
    

    Hope it can help someone.

提交回复
热议问题