Webmin Installation and Configuration in Debian and Ubuntu Linux
Posted by Admin on September 11th, 2006
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Webmin consists of a simple web server, and a number of CGI programs which directly update system files like /etc/inetd.conf and /etc/passwd. The web server and all CGI programs are written in Perl version 5, and use no non-standard Perl modules.
Installing Webmin in Debian
#apt-get install webmin webmin-core
After the installation If you want to access webmin from any machine in your network edit the /etc/webmin/ miniserv.conf file change the “allow” option
allow=127.0.0.1 to allow=0.0.0.0
If you want to restrict webmin for only your network you can do in this allow option
Once you change this and save your file and restart the webmin using following command
#/etc/init.d/webmin restart
Go to your browser and type:- https://ipaddress:10000 and you can login using the debian linux root as username and password for root.
If you ou need any webmin modules for your applications you can download from here
Update Webmin online from your machine
Click on Webmin Configuration under webmin tab from here click on Upgrade Webmin and select the Latest version from www.webmin.com option now click on upgrade webmin button this will start the webmin upgrade from webmin site
Downloading http://www.webmin.com/download/webmin-1.290.tar.gz ..
Downloading http://easynews.dl.sourceforge.net/sourceforge/webadmin/webmin-1.290.tar.gz (10324511 bytes) ..
Received 1024 bytes (0 %)
Received 1033216 bytes (10 %)
Received 2065408 bytes (20 %)
Received 3097600 bytes (30 %)
Received 4130816 bytes (40 %)
Received 5163008 bytes (50 %)
Received 6195200 bytes (60 %)
Received 7227392 bytes (70 %)
Received 8260608 bytes (80 %)
Received 9292800 bytes (90 %)
Received 10324511 bytes (100 %)
.. Download complete.
No package signature verification done.
Running setup.sh script to upgrade Webmin .. Please wait a minute until it is complete before continuing.
Other available options
From local file
From uploaded file
From ftp or http URL
Installing Webmin from latest .deb package
You can download latest .deb from here
#wget http://prdownloads.sourceforge.net/webadmin/webmin_1.290.deb
#dpkg --install webmin_1.290_all.deb
the install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/
Installing Webmin in Ubuntu
You can use the above procedure but if you want to install latest version you can download from webmin site download section
Prerequisites
Perl 5 interpreter and libnet-ssleay-perl
#apt-get install perl5 libnet-ssleay-perl
Now you need to download the latest webmin from the above downloadlink
Download ‘webmin-1.290.tar.gz’ (at the time of writing) to some location in your machine ex:- /usr/local/src
#wget http://prdownloads.sourceforge.net/webadmin/webmin-1.290.tar.gz
#cd /usr/local/src
#tar xzvf webmin-1.290.tar.gz
#cd webmin-1.290
#sh setup.sh
This will start the installation and now it will prompt for several questions answer them as follows
Config file directory [/etc/webmin]:
Leave as default, or change as you wish
Log file directory [/var/webmin]:
Leave as default, or change as you wish
Full path to perl (default /usr/bin/perl):
Leave as default, or change as you wish
Operating system:
Enter ‘6′
Version:
Enter ‘6′
Web server port (default 10000):
This is where you can start to make webmin more secure then the standard install you get with apt-get, Synaptic, or RPM. Leave as default or change it to what ever port you want.
Login name (default admin):
It is ‘admin’, so you can leave it as that, or put in any name that you like.
Login password:
By creating the user above and giving it a password, you have now made it so you will not need to log into webmin with root.
Password again:
enter your password again
If you did not install ‘libnet-ssleay-perl’ you will get the following message:
‘The Perl SSLeay library is not installed. SSL not available.’ You can continue with the install, but it would be more secure if you install sslrelay.
Use SSL (y/n):y
Choose yes here
Start Webmin at boot time (y/n):y
select here y
At this point it is going to configure things, install things, and create things…
It will then tell you that you can log in to https://hostname:10000 and to accept the certificate.
Webmin User Password Change
If you want to change root password in webmin use this included Perl script:
# /usr/share/webmin/changepass.pl /etc/webmin root
If you want to install any standard modules you can download from here
If you want to install third party modules you can download from here


November 29th, 2006 at 12:28 pm
Very concise and helpful, especially now webmin no longer appears to be in the Ubuntu repositories!!! Thanks guys
December 6th, 2006 at 4:01 am
Do you, per chance, have an updated command for installing Webmin in Debian.
Doesn’t seem to be valid command anymore.
December 6th, 2006 at 9:03 am
try to run the following commands
apt-get update
apt-cache search webmin
this should give all webmin related packages
December 14th, 2006 at 3:37 pm
Thank you very much!
January 10th, 2007 at 11:07 pm
my system responsed as below:
root@server1:/etc/postfix/ssl# apt-get install webmin webmin-core
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package webmin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package webmin has no installation candidate
>>>>>>>>>>>>>>>>>>
any other way to install this ?
January 15th, 2007 at 1:01 am
para tí de mí
January 19th, 2007 at 5:27 am
I switched to Ubuntu 6.10 server sparc edition and did some research to install Webmin. Maybe some of this info may be of some use to you.
Webmin install
What is Webmin?
Webmin is an excellent web-based interface to your *nix based machines(www.webmin.com). There are no webmin packages in the latest release “Dapper”. This is how I installed webmin on my Dapper server…
Edit Jul 15 2006: as of July 2006 webmin.com has a testing deb for the full webmin package. You can use this, but you will have to enable the root user. Following the instructions below will avoid enabling the root account.
1. Install SSH
Code:
sudo apt-get install ssh openssh-server
2. Enable the universe and multiverse repositories in the /etc/apt/sources.list (https://wiki.ubuntu.com/AddingRepositoriesCliHowto)
3. To make this easier use a ssh client like Putty(Win32) or a Term on another machine that has a GUI and copy/paste these commands or you can just re-type them…
Below is the source I just happened to use. If it is not working go to: http://prdownloads.sourceforge.net/w…n-1.300.tar.gz and find a working mirror.
Where to install Webmin?
At this point you should note that the directory that you are currently in will be the directory that webmin gets installed into. I don’t mind it being in /home/MyAdminAccount/webmin, but if you want it somewhere else now is the time to change to that directory.
Doing something like this would put your installation in /opt/webmin
Code:
sudo su
Code:
mkdir /opt/webmin
and then
Code:
cd /opt/webmin
Now Download the Webmin archive…
Code:
wget http://easynews.dl.sourceforge.net/sourceforge/webadmin/webmin-1.310.tar.gz
Code:
gzip -cd webmin-1.310.tar.gz | tar xvf -
Code:
sudo apt-get install libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules
If having problems on Edgy server sparc for libauthen-pam-perl then do
Code
#apt-get install libnet-ssleay-perl
Code:
cd webmin*
Code:
./setup.sh
Basically just hit enter and choose SSL and the auto start the service at boot
Web server port (default 10000): (Feel Free to change this)
Login name (default admin):
Login password: AReallyGoodONE
Password again: AReallyGoodONE
Use SSL (y/n): y
Start Webmin at boot time (y/n): y
Now you can login with the user/password that you set at the https://IpAddressOfYourMachine:10000
________________________________________
January 26th, 2007 at 9:42 am
Very nice tutorial… Thanx!
March 4th, 2007 at 3:50 am
Thanks for this post, Richard. This was exactly what I needed to get my Webmin going. The standard “apt-get” command didn’t install of the components that make webmin very useful, and I was worried there for a bit, until I saw your post, and not realizing that it would install the same way as if the box were a readhat, I was thinking I was limited to the apt installer (can you tell I’m new to Linux?!?!). This post cleared all of that up, and now I can see my servers tab, and can get my web server going.
THanks!
March 28th, 2007 at 1:00 pm
Nice how-to, but the line
#dpkg –install webmin_1.290_all.deb
should read:
#dpkg –-install webmin_1.290.deb
October 22nd, 2008 at 5:05 pm
Great tutorial, now I can manage my server without using SSH directly!
November 2nd, 2008 at 12:33 pm
But it needs some packages:
apt-get install libnet-ssleay-perl openssl libauthen-pam-perl libio-pty-perl libmd5-perl
apt-get install webmin
And I changed default password for root user
/usr/share/webmin/changepass.pl /etc/webmin root my password
Thanks for your efforts
January 5th, 2009 at 8:59 pm
If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system and add the line :
deb http://download.webmin.com/download/repository sarge contrib
You should also fetch and install this GPG key with which the repository is signed, with the commands :
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
You will now be able to install with the commands :
apt-get update
apt-get install webmin
All dependencies should be resolved automatically.
February 16th, 2009 at 6:51 am
As a systems administrator, I’m configuring for change passwd plugs in Linux.
Someone send me the following installation and configuration for change
passwd plugs in Linux. Please assist me so that users can be able to
change their passwd. I have gone through as below. I’m using fedora 6 with
thier coresonding versions of passwd and compatibility shown (1) and (4).
Installing Change Passwd Plugin
===============================
Download two plugin change_passwd and compatibility
1) Start with untaring the file into the plugins directory.
Here is a example for the 4.0 version of the change_passwd
plugin. (or any current version from download)
$ cd plugins
$ tar -zxvf change_passwd-4.0-1.2.8.tar.gz
2) Change into the change_passwd directory, copy config.php.sample
to config.php and edit config.php, making adjustments as
you deem necessary.
$ cd change_passwd
$ cp config.php.sample config.php
$ vi config.php
The below is the edited file for config.php
<?php
global $confirmPass, $oldPass, $seeOutput, $pathToChpasswd,
$pathToPw, $debug, $minimumPasswordLength;
// Set this to the minimum length of passwords you want
// to enforce. Set to zero to disable this check
//
$minimumPasswordLength = 8;
// Set this to 1 if you want the user to have to enter
// their new password twice. Set to zero otherwise,
// but why would you do that?
//
$confirmNewPass = 1;
// Set this to 1 to require the user to enter thier current
// password in order to change it (FreeBSD (’pw’ utility)
// users typically set this to zero; others can (and should!)
// leave this as is.
//
$confirmOldPass = 0;
//$confirmOldPass = 0;
// Please include the full path (not relative) to the chpasswd program //
ONLY if you are NOT using the one included with this plugin!
//
$overridePathToChpasswd = ”;
// Use this setting only if you want to use the pw program to change //
your password (available on e.g. FreeBSD). Include full path
// (not relative) to the pw program. This will override the chpasswd //
program, so leave it empty if you are using chpasswd.
//
$pathToPw = ”;
// If you want see the output of the chpasswd program (usually
// only useful for debugging purposes, set this to 1
//
$seeOutput = 0;
// For debugging only, set this variable to 1. WARNING: this will
3) Make sure the file permissions on the chpasswd file are
correct (unless you’ll be using the ‘pw’ utility on
FreeBSD). Substitue the name of the user that your web
server runs under for “apache” in the command below:
$ chown root:apache chpasswd
$ chmod 4750 chpasswd
4) Also, please verify that you have the “compatibility” plugin
installed.
plugin]# tar xfvz compatibility-2.0.9-1.0.tar.gz
5)Go to the squirrelmail configuration and make sure the change passwd and
compatibility plugins are selected , save and quit
Then restart httpd service
The step 5 could not understand and therefore I could not complete. Please assist me.
July 11th, 2009 at 1:17 pm
Installing Webmin from latest .deb package
login as root or use : sudo su
Install essentiale pack
apt-get install perl5 libnet-ssleay-perl
if get errors try this
apt-get install libnet-ssleay-perl
Download webmin and install webmin
wget http://downloads.sourceforge.net/sourceforge/webadmin/webmin_1.480_all.deb
for install type : dpkg –install webmin_1.480_all.deb
October 13th, 2009 at 7:35 am
I installed webmin on debian lenny (5.03) and I’m unable to connect to https (/etc/webmin/miniserv.conf ssl=1)!
In http I have no problem (/etc/webmin/miniserv.conf ssl=0)!
Have you any idea?
apt-get install perl5 libnet-ssleay-perl
apt-get install webmin
(depository deb http://download.webmin.com/download/repository sarge contrib)