Nginx 502 Bad Gateway solution
1.FastCGI take long time, you need add this configs to nginx.conf
fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300;
2 FastCGI Buffer not enough, add to nginx.conf
fastcgi_buffer_size 32k; fastcgi_buffers 8 32k;
3. Proxy Buffer not enough, add to nginx.conf
proxy_buffer_size 16k; proxy_buffers 4 16k;
4. php-fpm log size more then 2G