header pictures for dedicated hosting services

How to Install Webmin - FreeBSD Webmin installation guide

This page is meant as a guide for installing Webmin on a FreeBSD server. If you have any questions you can post them in our FreeBSD Forums.
Remember this is a guide only and this website and its owners and operators assume no liability for any problems arising with your installation.
Also make sure you always update your Webmin to the latest version to guard against any vulnerabilities in Webmin. If you feel that these are things beyond your scope then you can always look at the list of dedicated hosting services, some of which offer managed hosting where they manage the server administration on your behalf. For those of you who do not know what Webmin is you can visit our server administration panel section and read up on server control panels

Webmin Install Using the FreeBSD Ports Collection

The FreeBSD Ports Collection is one of the easiest ways for users or administrators to compile and install applications for FreeBSD. You can type "make install clean" in corresponding directory, the system will automatically fetches the application source code, either from a local disk or via FTP, unpacks it on your system, applies the patches, and compiles it. If all goes well, simply type make install to install the application.

Before using ports system, you need to make sure you have ports collection installed. You can run the following command to check:

FreeBSD# ls /usr/ports

If it returns a list of directories, that shows ports collection is already installed. If it's empty or it reports an error like "No such file or directory", then you need to download ports collection and unpack it on your system.
Follow below steps to install it if it hasn't been installed:
1. Run the following command to check your FreeBSD release version and machine architeture

$ uname -a

FreeBSD freebsd7.my.local 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@yourdomainhere.com:/usr/obj/usr/src/sys/GENERIC i386

You can see here, this is an i386 machine running FreeBSD 7.1

So you know which ports.tgz file to download

2. download ports collection and install script:

FreeBSD# cd /tmp
FreeBSD# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.1-RELEASE/ports/install.sh
FreeBSD# fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.1-RELEASE/ports/ports.tgz
FreeBSD# chmod a+x install.sh
FreeBSD# ./install.sh
Remeber, you need to run this as root user.

After everything is downloaded, you should have the ports collection installed under /usr/ports. You're ready to install webmin.

Install Perl

Execute the following command to install perl:

FreeBSD# cd /usr/ports/sysutils/webmin
FreeBSD# make install clean

Ports system will fetch and build webmin for you. After that's done. You'll need to run the webmin setup.sh script, like shown below:

FreeBSD# /usr/local/lib/webmin/setup.sh

***********************************************************************
* Welcome to the Webmin setup script, version 1.370 *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin in /usr/local/lib/webmin ...

***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.

Log file directory [/var/log/webmin]: /press Enter here to accept default/

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl): /press Enter here to accept default/

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name: FreeBSD
Operating system version: 7.0

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.

Web server port (default 10000): /press Enter here to accept default, or type your own choice/
Login name (default admin): /press Enter here to accept default/
Login password: /set your password here/
Password again: /retype your password here/
Use SSL (y/n): y /type y here to use SSL for the web interface, otherwise, type n here/
***********************************************************************
Creating web server config files..
..done

Creating access control file..
..done

Creating start and stop scripts..
..done

Copying config files..

..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
..done

Script is now completed. You start webmin by running the following command:
FreeBSD# /usr/local/etc/webmin/start

If this command reports no errors, you can point your browser to
https://your_host_name:10000

Then use user admin and your password to login. You should be able to view and manage all aspects of your system. Just a note to say that, under server module of webmin, there are many servers, but that doesn't necessarily mean it's been installed on your server.

This guide was put together using a combination of comments and language captured from the terminal screen and is meant as a guide for helping you install Webmin. We would like to thank everyone over at Webmin for their hard work in developing a very nice server control panel.



Looking for our FreeBSD Forums? We have moved them off our main page,just follow the link to our FreeBSD Forums page.

Guests Visit the FreeBSD Forums  •  Login to the FreeBSD Forums  •  Register for FREE
Custom Search


Copyright © 2009, WEBSERVER CONSUMER GUIDE

Privacy Policy

Please note:
(1) FreeBSD is a registered trademark of The FreeBSD Foundation.
(2) WEBSERVER CONSUMER GUIDE is in no way affiliated with The FreeBSD Foundation