# Installing web administration interface
the os used is ubuntu 20.4 ( server edition)
1. update the repositories
sudo apt update
2. the upgrade is optional 3. install the properties repo
sudo apt install software-properties-common apt-transport-https wget
4. Add the repositories source in the source.list the command for that is
sudo nano /etc/apt/sources.list# Add these lines at lastdeb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge
contrib# Save and exit the editor
5. Install the GPG key to trust the repositories the command is
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
6. update the repositories list
sudo apt update
7. Install the webmin
sudo apt install webmin
8. If the firewall is enabled we can allow port 10000 as this is the default port for webmin since ubuntu uses UFW we can use following command
9. now we can visit the URL after completion of install
https://<IP>:10000/
Installing the plugin(virtualmin) for better management.
1. Download the shell script
curl -O http://software.virtualmin.com/gpl/scripts/install.sh
2. make the script executable
sudo chmod +x install.shsudo ufw allow 10000
sudo ufw reload
3. Run the command
sudo ./install.shsudo apt install apache2/etc/init.d/apache2 stop ; update-rc.d apache2 remove
this will stop the apache as well
# Installing webservers
since apache2 is preinstalled if not we can install it with
sudo apt install apache2
we can directly go of the installation of nginx
- Shut down Apache with the command `service httpd stop ; chkconfig httpd off` (on RHEL or CentOS), or (on Debian).
/etc/init.d/apache2 stop ; update-rc.d apache2
2. Install Nginx with the command `yum install nginx` (on RHEL or CentOS) or `apt-get install nginx` (on Debian).
3. Start the Nginx webserver with the command
/etc/init.d/nginx start
4. Install Virtualmin’s Nginx plugin with the command `yum install wbm-virtualmin-nginx wbm- virtualmin-nginx-ssl` (on RHEL or CentOS) or `apt-get install webmin-virtualmin-nginx webmin- virtualmin-nginx-ssl` (on Debian).
configure nginx to run on any port
- change the default configuration
vi /etc/nginx/sites-enabled/default
2. change the nginx port no
server {
listen 8080 default_server;listen [::]:8080 default_server;
...