Page 1 of 1

How to disable public access to domain.com/phpmyadmin

Posted: Mon Jun 02, 2014 11:51 am
by popat
Hello, I have zero knowledge about programming, hosting, server etc. so please help me for this questioin:

When I open any website with this web address: domain.com/phpmyadmin at that time this phpmyadmin login page appears, this means anyone on internet can open phpmyadmin login page via any domain listed on my vestacp. How can I disable OR How can I stop displaying this to everyone/public.

Thank you in advance.

Re: How to disable public access to domain.com/phpmyadmin

Posted: Wed Jun 04, 2014 12:21 am
by alexcy
May not answer your question completely, but what I have done was to get a free SSL certificate from startssl.com for my primary domain, and then set phpmyadmin to listen to port 443 only. Since it was the only domain with SSL on that IP, it was only accessible through that domain.

You can do this without an SSL certificate. However, your users are going to get warnings from their browser. If you are the only one to be using phpmyadmin, I guess that this is not an issue.

Re: How to disable public access to domain.com/phpmyadmin

Posted: Tue Jun 24, 2014 5:39 pm
by imperio
Hello,
When I open any website with this web address: domain.com/phpmyadmin at that time this phpmyadmin login page appears, this means anyone on internet can open phpmyadmin login page via any domain listed on my vestacp. How can I disable OR How can I stop displaying this to everyone/public.
You can use .htaccess file for deny access to phpmyadmin or phpmyadmin.conf

Re: How to disable public access to domain.com/phpmyadmin

Posted: Tue Dec 02, 2014 2:20 am
by sauvegardezvous99
imperio wrote:Hello,
When I open any website with this web address: domain.com/phpmyadmin at that time this phpmyadmin login page appears, this means anyone on internet can open phpmyadmin login page via any domain listed on my vestacp. How can I disable OR How can I stop displaying this to everyone/public.
You can use .htaccess file for deny access to phpmyadmin or phpmyadmin.conf

In next release, it would be nice to get a file log editor for any .conf file, like /etc/aliases, /etc/php.ini, /etc/xxx
inside vestacp like directadmin.
thank you,