nginx error connect to php5-fpm.sock failed (13: Permission denied)

后端 未结 25 1825
悲哀的现实
悲哀的现实 2020-11-27 09:12

I update nginx to 1.4.7 and php to 5.5.12, After that I got the 502 error. Before I update everything works fine.

25条回答
  •  醉梦人生
    2020-11-27 09:27

    If you have different pool per user make sure user and group are set correctly in configuration file. You can find nginx user in /etc/nginx/nginx.conf file. nginx group is same as nginx user.

    user = [pool-user]
    group = [pool-group]
    listen.owner = [nginx-user]
    listen.group = [nginx-group]
    

提交回复
热议问题