Question

502 Bad Gateway on install phpmyadmin with nginx

I’ve install one-click nodejs ubuntu 16.04 droplet and config the nginx. I try install phpmyadmin and get a 502 code in /phpmyadmin url. How to make this work?

Subscribe
Share

Submit an 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.

This comment has been deleted

I can run php and nodejs in the same droplet?

As phpmyadmin is a PHP application you will need to ensure PHP is installed. As well you will need to instruct NGINX to use php for PMA.

Here is a start with it. https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04

However since you’re using NodeJS you may want to look at other solutions