cant access phpmyadmin through my IP/phpmyadmin (redirection to domain)

February 21, 2019 445 views
WordPress Databases Ubuntu 18.04

Hello there, i have installed a oneclick wordpress app on my droplet and during the installation it asked for a domain/subdomain and i had put a random one just for test sake… i had also installed phpmyadmin but whenever i use the IP/phpmyadmin it redirects me to the domain that i had put and i cant access the phpmyadmin page since i dont own said random domain

1 Answer

Hey friend,

So Wordpress is going to capture everything by default, and you generally want it this way for permalinks. You can try to capture /phpmyadmin by configuring it to be intercepted at the web server level and served from the directory that it’s installed. The easiest way is to make sure that the application is not installed in a subdirectory of the Wordpress installation as .htaccess files are recursive in nature, Working around that is more trouble than it’s worth.

I’d honestly ask a question that changes the direction instead. What is it that you need phpmyadmin for? This is a single PHP file that accomplishes the same task: https://www.adminer.org/en/

Anything that you need to do over phpMyAdmin can be done over SSH without exposing the ability to brute force your databases. What is the task that you’d like to complete through it?

Jarland

Have another answer? Share your knowledge.