I'm getting the error: "502 bad gateway" when using nginx + php-fpm


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » CustomBuild » CustomBuild 2.0 » Nginx

I'm getting the error: "502 bad gateway" when using nginx + php-fpmLast Modified: May 11, 2016, 1:23 am
If you're getting an error similar to:

502 bad gateway

Edit the file:

/etc/sysctl.conf

and set:
FreeBSD

kern.ipc.somaxconn=4096

Debian/CentOS

net.core.somaxconn=4096


To load the value now, type:

sysctl -w net.core.somaxconn=4096

else you'd need to reboot to load the sysctl.conf file into the kernel.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST