How to install Webmin/Virtualmin on FreeBSD

 In case you want to administer the server remotely, i.e. without using the console (monitor, keyboard and mouse) physically connected to the machine, you will need to resort to remote control solutions such as VNC, which are very expensive in terms of bandwidth requirements and generally more difficult to configure and use.

A solution that combines flexibility and ease of use is offered by web-based administration interfaces. These are applications specifically designed to automate various administration tasks, from user management to the installation of new services, with a web interface, and therefore accessible through a common browser.

One of the most famous web-based administration interfaces is Webmin, first released in 1997. Webmin has a modular architecture and this allows you to customize your installation according to the services installed on the server. In addition, this feature has guaranteed certain longevity to the project, allowing the addition of new modules or updating of existing modules without ever changing the core of the system.

How To Install Webmin on FreeBSD

So how to install it?

First of all, you should update your FreeBSD package index by typing:

# pkg update


After all the updates being installed on your system it’s time to proceed with Webmin installation. Depending on what kind of software you have already installed on your system it should take around 200mb of disk space. 

# pkg install webmin
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 8 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
    webmin: 1.900
    p5-Net-SSLeay: 1.85
    perl5: 5.28.1
    p5-Authen-PAM: 0.16_2
    python27: 2.7.15
    readline: 7.0.5
    libffi: 3.2.1_3
    p5-IO-Tty: 1.12_2
Number of packages to be installed: 8
The process will require 210 MiB more space.
42 MiB to be downloaded.


Next, you will be prompted whether you would like to confirm or not. Press Y and continue. Once the installation will be complete you need to configure Webmin. Run this command:

# /usr/local/lib/webmin/

Things you need to set up here are:

  1. Set up config file directory 
  2. Set up log file directory
  3. Web server port, by default it is 10000
  4. Login
  5. Password. Use something complex and case-sensitive!
  6. Enable SSL.


Everything is pretty straightforward so don’t worry if you miss something.

So what’s next?

Let’s launch it!

# service webmin start

In order not to write this command each time let’s make it auto-launch itself after each boot:

# sysrc webmin_enable="YES"
webmin_enable:  -> YES

As with any control panel you can access it by typing your IP + port number to access it. In the case of Webmin, it would be Just insert your IP address.


There you have it! Once again BlueVPS is offering pre-installed control panels with its VPS including DirectAdmin, cPanel, VestaCP, or ISPmanager. Feel free to contact our team if you have any problems regarding the installation process. We’re here to help!

24 Mar 2022
Review bluevps at