I figure it's a long shot but worth a try. I accidentally uninstalled Virtualmin. Can I reassociate the domains and settings?

You could try the installation documentation. There’s some info about how to manually install things, so something there may help.

https://www.virtualmin.com/documentation/installation