FreeBSD Install and Configure Webmin Web-based Interface ( Control Panel )
Q. How do I install webmin control panel for my FreeBSD server?
A. Webmin is a web-based interface for system administration for Unix including FreeBSD. Using any browser that supports tables and forms, you can setup user accounts, Apache, DNS, file sharing, firewall and so on. Webmin consists of a simple web server, and a number of CGI programs which directly update system files like /etc/inetd.conf and /etc/master.passwd.
Install webmin
To install webbin, update your ports, enter:
# portsnap fetch update
Install webmin from /usr/ports/sysutils/webmin, enter:
# cd /usr/ports/sysutils/webmin
# make install clean
Configure webmin
Now, webmin is installed. Start webmin on startup, enter:
# vi /etc/rc.conf
Append following line:
webmin_enable="YES"
Save and close the file. You need to run /usr/local/lib/webmin/setup.sh script in order to setup the various config files, enter:
# /usr/local/lib/webmin/setup.sh
Sample output:
*********************************************************************** * Welcome to the Webmin setup script, version 1.420 * *********************************************************************** 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] *********************************************************************** 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] 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] Login name (default admin): [Press Enter] Login password: [type password] Password again: Use SSL (y/n): y *********************************************************************** 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
How do I view webmin?
Fire a webbrowser and enter url:
https://your-domain.com:10000/
OR
https://your-server-ip:10000/
You should see login html form as follows:

(Fig. 01: - Webmin in action under FreeBSD)
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Plesk type themes for webmin Web hosting control panel
- FreeBSD Install Applications
- FreeBSD WARNING: Vulnerability Database Out of Date, Checking Anyway Error and Solution
- FreeBSD install Perl language
- How To Upgrade FreeBSD 6.2 to FreeBSD 6.3 ( Minor Update ) using freebsd-update utility
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /etc/rc.conf, /usr/local/lib/webmin/setup.sh, configuration files, control panel, freebsd ports, freebsd server, freebsd unix, install webmin on freebsd, installing webmin on freebsd, make command, start webmin freebsd, UNIX, unix services



July 20th, 2008 at 12:10 am
It very goods. Thank you
July 28th, 2008 at 6:28 pm
how can i fix this problem
An error has occurred building a program for listing mounted filesystems on your system :
/usr/local/lib/webmin/mount/freebsd-mounts-5.c: In function ‘main’:
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:18: warning: incompatible implicit declaration of built-in function ‘exit’
/usr/local/lib/webmin/mount/freebsd-mounts-5.c: In function ‘expand_flags’:
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:34: warning: incompatible implicit declaration of built-in function ’strcat’
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:38: error: ‘MNT_NODEV’ undeclared (first use in this function)
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:38: error: (Each undeclared identifier is reported only once
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:38: error: for each function it appears in.)
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:48: warning: incompatible implicit declaration of built-in function ’strlen’
thanks in advance
August 13th, 2008 at 5:28 pm
I got the same thing after the install said “Permission Denied” when running postinstall scripts.
September 16th, 2008 (4 weeks ago) at 6:59 am
If you get this error:
An error has occurred building a program for listing mounted filesystems on your system
…then you’re running an outdated version. I found this page because I was as well. You can use Webmin itself to upgrade to the latest version and this will work fine.
Cheers,
GregMo
September 19th, 2008 (3 weeks ago) at 4:18 am
thanx allot GregMo i had 2 update my ports