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

后端 未结 25 1839
悲哀的现实
悲哀的现实 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:35

    To those who tried everything in this thread and still stuck: This solved my problem. I updated /usr/local/nginx/conf/nginx.conf

    1. Uncomment the line saying user

    2. make it www-data so it becomes: user www-data;

    3. Save it (root access required)

    4. Restart nginx

提交回复
热议问题