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

ubuntu+nginx 502 bad gateway solution

WBOY
Release: 2016-07-29 08:51:22
Original
2662 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template