How to set up Virtualmin on Webdock
Last updated: November 10th 2022
Introduction
Virtualmin is an open-source web hosting and cloud control panel. It enables users to create multiple managed hosting environments and avoid switching to different servers. It's secure and allows access to the server via an SSL-encrypted HTTP protocol.
Prerequisites
- A fresh Webdock cloud Ubuntu Focal (Ubuntu 20.04) instance.
- You have shell (SSH) access to your VPS.
- Virtualmin licence (may not be necessary if you plan to use only the basic features)
Create a new shell user and SSH to your server
Create a new shell user. After creating the shell user, on the right side, enable "Passwordless Sudo" and apply the settings.
Installing Virtualmin
WebSSH into your Webdock server.
Update and upgrade the packages using:
$ sudo apt update && sudo apt upgrade
Fetch the installation script with:
$ sudo wget http://software.virtualmin.com/gpl/scripts/install.sh
Set hostname using:
$ sudo hostnamectl set-hostname example.com
Replace example.com with your domain or sub-domain and make sure to add the necessary DNS records to point the domain(or sub-domain) to your Webdock server IP address.
Enable executable permission to the script by executing:
$ sudo chmod a+x install.sh
Run the script now and enter y to start the installation process.
$ sudo ./install.sh
Wait for the installation to complete.
Once done you will be shown URL to manage the server.
Click on the URL. Ignore the SSL error for now (as this is a self-signed certificate) and proceed.
In the Virtualmin login screen enter your shell credentials (which you created earlier) to login.
Fixing network interface detection error
For some unknown reason, Virtualmin wasn't able to detect the network interface on the server. So we configure that manually.
After logging in, from the left column, go to System Settings → Virtualmin Configuration.
In the Configuration category dropdown choose Networking Settings. Not setting these will result in interface error. Set:
- Network interface for virtual addresses to eth0
- Default virtual server IPv4 address to your Webdock server IP address.
- Default IP address for DNS records to Same as virtual server IP
Now click "Save".
Then on the left-side bar click on Re-Check Configuration.
Click on return to virtual server's list. You should see post-installation wizard.
Final step
In the Post-Installation Wizard screen click Next and choose the options as per your requirement. In most cases, you can go ahead with the default options. However, for Primary nameserver make sure it is set to your domain (or sub-domain).
Note: If you're on Nano server, please choose the options carefully as some services are resource hungry.
Depending on the circumstances you may see a Connection Lost Warning. If you see, click on self-signed SSL certificate and bypass the warning. Then you should see that the connection is established.
Re-check the configuration.
Some points to keep in mind
- Some features of Virtualmin need professional licence. You can buy the licence from the official Virtualmin website. However, basic things like Wordpress, PHPMyAdmin, e.t.c need no professional licence.
- The script installs LAMP stack (not LEMP). You can choose to install LEMP instead by passing a command line argument (more about this here). However, official Virtualmin docs suggest to install LAMP. So the commands you used here installs LAMP instead of LEMP.
- Let's Encrypt SSL certificate can be generated once the post-installation process is done. Go to Server Configuration → SSL Certificate. Make sure to add DNS records for emails and such.
Conclusion
That's it. Now you can manage your server with Virtualmin.
If you have any issues with the setup feel free to comment below or contact Webdock support.
Related articles
-
How to install OpenLiteSpeed on Webdock
In this article we show you how you can install the OpenLiteSpeed web server on Ubuntu Jammy.
Last updated: March 29th 2023
-
How to Deploy your First Node.js Application on your Ubuntu Web Server
Deploy a Node.js application on your Ubuntu server and how to issue SSL certificates for your Node application.
Last updated: July 19th 2023
-
How to set up WireGuard on your Webdock Server
This article details how you can quickly and easily install WireGuard on your Webdock Server.
Last updated: July 21st 2024
-
How to set up OpenVPN on your Webdock Server
This article details how you can quickly and easily set up a VPN on your Webdock server.
Last updated: November 10th 2022
-
How to Install and configure aaPanel on Ubuntu
Install aaPanel on Ubuntu as well as building a LEMP stack, pointing your domain to your server and setting SSL certificates with Let's Encrypt.
Last updated: November 10th 2022
-
How to install azuracast on Webdock
This guide shows you how to work around certain issues when installing azuracast on Webdock.
Last updated: November 10th 2022
-
How to set up Ploi on Webdock
This article details the steps you need to go through in order to install Ploi on a Webdock server.
Last updated: November 10th 2022
-
How to install and create pipelines in Jenkins
This guide describes the step-by-step procedure of installing Jenkins and creating pipelines in Jenkins.
Last updated: November 10th 2022
-
Basic WordPress site setup with aaPanel
In this guide, we will install and setup a basic WordPress site with aaPanel.
Last updated: January 23rd 2023
-
How to use Nginx as reverse proxy and secure connections with SSL certificates
Using Nginx to proxy pass your site with SSL security.
Last updated: July 19th 2023
-
Setting up monitoring with Netdata on your Webdock server
Setting up monitoring on your server to receive alerts and to know real-time resource consumption on your server.
Last updated: July 19th 2023
-
How to Setup Python Web Application With Flask Gunicorn and Nginx
A simple Python Flask web app hosting with Gunicorn and Nginx
Last updated: July 19th 2023
-
How to Daemonize an Application with Systemd
Using systemd to autostart your application on system startup.
Last updated: July 19th 2023
-
Set-up New Relic Monitoring on Your Webdock Server
This guide provides step-by-step instructions to install New Relic to monitor your VPS.
Last updated: July 29th 2024
-
Getting Started with Ruby on Rails on Webdock
In this guide, we will show you how to get started with Ruby on Rails on your Webdock server
Last updated: July 19th 2023
-
How to Install VaultWarden on Your Webdock Server
This guide provided step-by-step instructions to Vaultwarden, an open-source Password Manager on your Webdock Server.
Last updated: July 19th 2023
-
How to Install the Latest Version of HTOP on Ubuntu Server
Instructions to install latest htop package on your Ubuntu server
Last updated: July 29th 2024
-
How to Install ImageMagick 7 on Ubuntu LEMP/LAMP stacks
Simple instructions to install ImageMagick 7 along with the PHP extension
Last updated: November 1st 2023
-
A Quick Guide to Installing Rust on Ubuntu
Instructions to install Rust
Last updated: December 18th 2023
-
How To Install Proxmox on Your Webdock Server
This article provides instructions on how to install Proxmox on your Webdock server
Last updated: July 29th 2024
-
How To Run Nextcloud on Your Webdock Ubuntu Server
Instructions to Install Nextcloud on your server with Docker
Last updated: February 13th 2024
-
The Ultimate Guide to Setting Up Mastodon server
A detailed guide with instructions to set up Mastodon on your Webdock server
Last updated: February 20th 2024
-
A Guide To Setting Up Mindustry Game Server on Ubuntu
Step-by-step instructions to set up your own Mindustry server
Last updated: November 4th 2024
-
A Guide to Installing ERPNext on Your Webdock Server
Step-by-step instructions to install ERPNext - a resource planning software - on your server
Last updated: May 28th 2024
-
A Beginner's Guide to Installing Apache Kafka on Ubuntu
Detailed instructions to get Kakfa running on Ubuntu!
Last updated: June 20th 2024
-
A Quick Guide To Installing Rocket Chat on Ubuntu
Instructions to install Rocket Chat on your Ubuntu server
Last updated: July 2nd 2024
-
How to Install Ghost CMS on a Webdock Server
Easily install Ghost CMS on your Webdock server with these instructions!
Last updated: September 2nd 2024
-
How to Install cPanel on a Webdock Ubuntu Server
Instructions for setting up cPanel on an Ubuntu server
Last updated: September 23rd 2024