Home >Backend Development >PHP Tutorial >ubuntu+nginx 502 bad gateway solution

ubuntu+nginx 502 bad gateway solution

WBOY
WBOYOriginal
2016-07-29 08:51:222663browse

1. 502 appears, first check the nginx error log

2. connect() appears to unix:/var/run/php5-fpm.sock

Solution:

Put /etc/php5/fpm/pool.d/www.conf in

listen.owner = www-data

listen.group = www-data

listen.mode = 0660

on

The above introduces the solution to the 502 bad gateway problem in ubuntu+nginx, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn