This is the recommended way to install Virtualmin is Automated Installation and can be done as follows.
download Virtualmin GPL from the below url.
Check your hostname
Are you sure you set a fully qualified domain name for your system? Find out with the following command:
If it is, Execute the downloaded install script using a command like the following (the filename varies slightly depending on your OS)
After a few minutes, you should have a fully functional Virtualmin web hosting system! Login using your favorite modern web browser by browsing to https://example.com:10000 (where “example.com” would be replaced by your system hostname).