502 Bad Gateway - PHP myadmin nginx

Posted July 27, 2020 5.7k views
NginxPHPUbuntu 18.04

As I was following through the tutorial on the same topic ( and ( I successfully, can run info.php and use HTTPS but after that I installed and run it up according to the topic.

sudo tail -30 /var/log/nginx/error.log

2020/07/27 08:04:12 [error] 2697#2697: *16 connect() failed (111: Connection refused) while connecting to upstream, client:, server:, reque                st: "GET /phpmyadmin HTTP/2.0", upstream: "", host: ""

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @hellomerphy,

Looking at the error, I can see you are trying to access

Are you sure there is anything listening on port 8080? You can check that by going in your droplet and typing in the following command

netstat -tulpen | grep 8080

Please let me know the output