Hi just testing out the install scripts from GPL ver, is there a way to configure the phpmyadmin files (conf, etc) after you install it for a virtual server in virtualmin? I can’t seem to find phpmyadmin.conf in the usual directory.
I just wanted to harden phpmyadmin by possibly putting IP restrictions and disallowing web access to directories via conf file.
When using the Install Script feature of Virtualmin, phpmyadmin will be installed either in the webroot directory of a virtual server or in the phpmyadmin directory of a virtual server or in any other directory of a virtual server that you may have specified at the time of the installation.
No worries! I too, am unable to see the phpmyadmin.conf file in etc or usr/share under ubuntu18.04LTS. It seems like virtualmin doesn’t install phpmyadmin with apache2 the usual (old) way. Would be nice if we’d have more info on how it is installed.
In any case, I just created .htaccess file inside the phpmyadmin subdirectory created by virtualmin install script and added the specific directives I wanted to test in it(Require, auth_type, etc). I’ve also disabled root and updated the explicit ip/host rules in the config.inc.php file to enforce further restrictions.
I’m just not sure though if there is a better way to do all this, ideas would be highly appreciated!