How to direct phpmyadmin to a subdomain on my site?
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
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?
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.