There are two ways to install Virtualmin: using the automated install script described here or following the manual installation guide. Whenever possible, use the automated method because it reduces mistakes and configures everything correctly for virtual hosting in no time.
If you haven’t already, read the Download page first, as it covers the steps needed for most installations on one page. Only move on to the more detailed docs if those steps don’t work for your situation.
On Debian and its derivatives, the Virtualmin installer treats MariaDB and MySQL as drop-in replacements, so if MySQL is already installed it will use it. To use Oracle MySQL instead of MariaDB, install mysql-server, mysql-common, and libdbd-mysql-perl with your package manager before running the installer. This is not available on EL-based systems, where only MariaDB is supported.
PostgreSQL and the Webmin PostgreSQL module are no longer installed by default. If you want PostgreSQL as part of the initial install, add --include PostgreSQL to your virtualmin-install.sh command, and also add --extra webmin-postgresql,postgresql,postgresql-server on EL systems or --extra webmin-postgresql,postgresql,postgresql-client on Debian and derivatives. You can also skip MariaDB setup with --exclude MariaDB. If Virtualmin is already installed, install the PostgreSQL packages and the Webmin PostgreSQL module for your OS, then run virtualmin-config-system --include PostgreSQL and lastly turn PostgreSQL feature on in the “System Settings ⇾ Features and Plugins” page.
In most cases, installing Virtualmin is as simple as installing a supported OS and then running the virtualmin-install.sh script. Supported systems are listed on the OS Support page.
We recommend using a minimal server version instance of your preferable operating system. The Virtualmin virtualmin-install.sh script will install any additional packages that it requires.
The OS-neutral virtualmin-install.sh script sets up the license key in /etc/virtualmin-license, configures your package manager for the Virtualmin repository, and then installs the virtualmin-config package, which completes the install for your OS and version.
If you’re using Virtualmin Pro, download virtualmin-install.sh from My Account → Dashboard page. If you’re using Virtualmin GPL, download it from the Download page.
Once the virtualmin-install.sh script is on your server, run it as root: