Need a guru: phpmyadmin / nginx / proxy / ssh

Greetings, Community. New guy here.

New to Linode, and new to nginx, which I'm playing with because I hear Wordpress absolutely screams on nginx. So I'm in the process of setting stuff up and migrating an existing WP site, when I get to the phpmyadmin issue.

I set up my Linode with the "better Wordpress" nginx StackScript on Ubuntu 12.04. And I've spent a full day Googling around looking for the best tutorials and walk-throughs about getting phpMyAdmin running on the box. Best I could do was getting running at domainname/phpMyAdmin, and obviously that just won't do.

I contacted Support, and when I asked if they could point me toward a decent resource, they said the following:

> The best way to secure it is to find a way to run PHPmyAdmin on local host and then proxy into your Linode to use it. This will keep it from being exposed to the outside world and still allow you access if you ssh tunnel.

Then another techie weighed in and said the best place to go for advice on how to do THAT was to come here to the Community, where y'all would be ridiculously happy to help me figure this thing out. The "run on local host" is easy. It's the rest that makes my brain hurt.

Thanks. And hi, by the way. Nice place you have here.

2 Replies

You can set up phpMyAdmin on your Linode and then password protect it using .htaccess or whatever method you prefer. That's the simplest solution and should be secure enough for your needs.

Found a solution. Using HeidiSQL to set up an SSH tunnel and accessing the DB through there. Thanks for the help.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct