502 Bad Gateway on install phpmyadmin with nginx

January 19, 2018 5.7k 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.

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.