Building an Ubuntu Apache Webmin Server

Part of my job is building out virtual machine servers. Recently I had to build out a webserver based on Ubuntu and Apache, and it needed to be administratable via webmin. This is a basic guide, but maybe it will help someone.

NOTE: This guide expects that you already have an existing VM with Ubuntu 18.04 Server LTS installed, and command line access (either console or SSH).

Here we go from the command line!


# sudo apt update
# sudo apt upgrade
# sudo apt install openssh-server apache2 gnupg2 php7.2 php7.2-opcache php7.2-gd php7.2-curl php7.2-common php7.2-imap

The default apache website is now accessible at HTTP://IP


# sudo nano /etc/apt/sources.list ADD this line. –> deb sarge contrib
CTRL+X to save

# sudo wget
# sudo apt-key add jcameron-key.asc
# sudo apt update
# sudo apt install webmin

The Webmin interface is now accessable at https://IP:10000

At this point you now have an updated Ubuntu 18.04 Server running the apache2 webserver, and administratable via the webmin HTTPS interface. From this point on you can use webmin to further administrate the apache2 server, and actaully complete tasks such as adding a website/CMS, and setting up SSL.