Report this

What is the reason for this report?

502 Bad Gateway on install phpmyadmin with nginx

Posted on January 19, 2018

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?



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.

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

This comment has been deleted

I can run php and nodejs in the same droplet?

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.