PHP-FPM - Nginx - phpMyAdmin - 502 bad gateway

Posted by Jesse on Ask Ubuntu See other posts from Ask Ubuntu or by Jesse
Published on 2012-10-29T02:57:56Z Indexed on 2012/10/29 17:24 UTC
Read the original article Hit count: 311

Filed under:
|
|
|
|

I have installed and configured PHP-FPM, Nginx, and then phpMyAdmin. When I access the main site everything works fine but as soon as I go to http://mysite.com/phpmyadmin I get a 502 bad gateway error.

When I look in my error logs I see the following error repeated throughout: (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx

Here is my default.conf for nginx: http://pastebin.com/YFEvAw81

I have tried many different configurations that I have found from users that have had the same issue but can't seem to get any of them to work.

© Ask Ubuntu or respective owner

Related posts about 12.10

Related posts about configuration