Report this

What is the reason for this report?

502 Bad Gateway - PHP myadmin nginx

Posted on July 27, 2020

As I was following through the tutorial on the same topic (https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04) and (https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04) 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: 171.4.216.143, server: mbswelfare.com, reque                st: "GET /phpmyadmin HTTP/2.0", upstream: "http://127.0.0.1:8080/phpmyadmin", host: "mbswelfare.com"


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @hellomerphy,

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

http://127.0.0.1:8080/phpmyadmin

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

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.