How to Install Webmin on CentOS and Ubuntu

How to Install Webmin on CentOS and Ubuntu

Webmin is a control panel that allows to manage configuration files and restart services without any SSH login. It is available for free and popular alternative to other control panels such as CPanel or Plesk, There are several modules and plugins that expand Webmin’s functionality.

Crucial provides Webmin control panel  as an alternative option to Cpanel/WHM with its Linux VPS server. For installing Webmin you need to have root SSH access to your Linux server.

Installation of Webmin on CentOS 5

First run this command to update the system’s package

# yum update

Then you need to install the Perl module Net::SSLeay

# yum -y install perl-Net-SSLeay wget

Download and install webmin

# wget


# wget

then run this command to install webmin

# rpm -Uvh webmin-1.590-1.noarch.rpm

It will install Webmin and you can access it using https://[serverIP]:10000

Webmin installation on Ubuntu 9 or Debian 5 using(.deb) Packages

Before installing any packages it’s always a good idea to get a full up to date list of packages. This can be done by running the follow command

# apt-get update

If you are getting error of repositories, Then you can replace the source list with the new repositories URLs:

# vi /etc/apt/sources.list

For example:

deb jaunty main restricted universe multiverse
deb jaunty-updates main restricted universe multiverse
deb jaunty-security main restricted universe multiverse

Before downloading or installing the .deb Webmin package, run the following command to install the tool wget for downloading packages from the internet.

# apt-get install wget

The next command will install some perl-related libraries required by webmin.

# apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

Run the following command

# apt-get update

Now you can download the Webmin .deb package

# wget

Install the Debian package with dpkg, not Aptitude

# dpkg -i webmin_1.590_all.deb

This will give you an error like this:

dpkg: dependency problems prevent configuration of webmin:
webmin depends on libnet-ssleay-perl; however:
Package libnet-ssleay-perl is not installed.
webmin depends on libauthen-pam-perl; however:
Package libauthen-pam-perl is not installed.
webmin depends on libio-pty-perl; however:
Package libio-pty-perl is not installed.
webmin depends on apt-show-versions; however:
Package apt-show-versions is not installed.
dpkg: error processing webmin (–install):
dependency problems – leaving unconfigured
Errors were encountered while processing:

This is good, we want it to error out, there is a little known function of apt-deb that when you have dependencies missing, it will add it to a fix-deps database internally in aptitude system, so that we can issue a command to do all the installation for us!

# apt-get -f install

After the successful installation of Webmin, You will get a message with the following URL in order to access the Webmin control panel.

This URL will be in the form of

“https://hostname:10000” (where “host name” is the host name of your Linux server)

You can use your server IP instead of host name in the above URL to access Webmin Control Panel.

Please check this URL for more information: