Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 31047  / 2 Years ago, wed, october 5, 2022, 10:11:10

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.


More From » 12.10

 Answers
4

I found under step 7 that you have to change the reference of the fastcgi_pass to your unix socket (ex: /tmp/php5-fpm.sock) instead of it listening to 127.0.0.1:9000



This has been a great learning experience, since I don't know the innards of Ubuntu/Unix


[#34623] Thursday, October 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cupwire

Total Points: 365
Total Questions: 126
Total Answers: 125

Location: Malaysia
Member since Thu, Feb 16, 2023
1 Year ago
cupwire questions
;