502 Bad Gateway on install phpmyadmin with nginx

January 19, 2018 9.1k views
Nginx MySQL Ubuntu 16.04

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?

3 Answers

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

by Brennen Bearnes
While many users require access to a database management system like MySQL, not all users feel comfortable interacting with the MySQL prompt on a daily basis. In this guide, we'll discuss how to install and secure phpMyAdmin, a web management interface for MySQL, on an Ubuntu 16.04 server.

I can run php and nodejs in the same droplet?

  • Correct.
    You can run any number of applications on the same server (droplet).

    I am not quite sure about the one click install(s) as I tend to go for the distribution server(s) (droplets) - i.e. Ubuntu:16.04 or Debian:9 - and then configure and install everything as needed.

    I suspect that if you can ssh into the one-click droplet you should be able to add additional software.

Have another answer? Share your knowledge.

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