Report this

What is the reason for this report?

How to direct phpmyadmin to a subdomain on my site?

Posted on January 9, 2015

Hey everyone. Firstly, I’ve just moved to DigitalOcean from a shared hosting account with another company, so I’m still getting the hang of configuring my server appropriately - so apologies if I’m slow to understand something.

Currently I have phpmyadmin configured and secured on my LAMP stack in Ubuntu, and I can navigate to it in my browser by entering <My IP>/phpmyadmin/

What I’d like to do is emulate how my previous hosting setup managed phpmyadmin. I’d like to access it by heading to the address mysql.<mysitename>.com. I have already set up the A record for my site, but now I need to know how to create a subdomain and have phpmyadmin open on that. How can I accomplish this?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.