The way Webmin seems to install phpMyAdmin is to install it inside the public_html directory. e.g.
https://mydomain.com/phpMyAdmin
I don't want to debate the vulnerability, instead I want phpMyAdmin to function on Webmin like it does in cPanel.
One recommendation was to create a subdomain and install it there, but this is an extra step every time.
cPanel doesn't have phpMyAdmin even accessible by the domain. Instead, it is located like this:
https://server1.myserver.com:2083/cpsess9292847592/3rdparty/phpMyAdmin/index.php
And it's only accessible through the web control panel. It seems to add a session ID to the URL too so it's only even valid for the current login, and then the URL doesn't exist if the user logs out or the session isn't valid.
Even better, this is also accessible by admins through WHM in one central place.
How can I get phpMyAdmin to install automatically for every use like it does in cPanel, and to install in a non-public directory that uses the server hostname like cPanel does?