Howto- Install Webmin in FreeBSD

Question: How to install Webmin in FreeBSD 8.x en 9.x ?

Answer:  Before to begin, you need to install Perl,  do that using the command

# cd /usr/ports/lang/perl5.10 # make;make install;make clean

Install   Webmin

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

Output

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.5xx *
***********************************************************************
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: 8.x

***********************************************************************
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