How to install Webmin on FreeBSD system

Intro

Webmin is a web-based interface for system administration for UNIX systems. Available and supported on many different Linux and BSD versions. This tutorial was completed using FreeBSD version 12.

Step 1. Install

Install Webmin via command line:

root@freebsd:# pkg install webmin

Answer yes to install all necessary dependencies. 

Step 2. Configure

Now configure Webmin by running the script located in /usr/local/lib/webmin/setup.sh

root@freebsd:# sh /usr/local/lib/webmin/setup.sh

Accept the default settings or change them to suit your needs.

Step 3. Enable

Allow Webmin to start on system start up by editing /etc/rc.conf file and adding a line with webmin_enable=”YES”

root@freebsd:# vi /etc/rc.conf

Once the correct line was added to rc.conf, start the Webmin service with

root@freebsd:# service webmin start

At this point you can use your browser to access the Webmin interface. Default port is 10000. And if you have selected to use SSL, enter this in your web browser: https://<your.bsd.ip.address>:10000

Replace <your.bsd.ip.address> with the actual IP address of you system or you can also use host name as well, as long as you DNS is working correctly.

Enjoy!