How to Setup Webmin 1.580 on CentOS 5.8

CentOS 5.8This quick post will show you the steps on installing webmin, the web-based system configuration and administration tool on linux CentOS 5.8 server. There are three alternative way to setup webmin which using RPM, YUM command and using Tar file. After setup webmin, you will be able to do linux system administration task using Graphical User Interface (GUI) which is good for linux newbie who not familiar with command line.

Option 1 : Setup Webmin using RPM

1. Download required RPM file here (

[root@centos58 ~]# wget


[root@centos58 ~]# wget

Example :

[root@centos58 ~]# wget
--2012-06-08 05:34:12--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17112780 (16M) [application/x-rpm]
Saving to: `webmin-1.580-1.noarch.rpm'

100%[==========================================================>] 17,112,780   118K/s   in 3m 2s

2012-06-08 05:37:15 (91.9 KB/s) - `webmin-1.580-1.noarch.rpm' saved [17112780/17112780]

2. Download and import my GPG key with which the packages are signed, with the commands :

[root@centos58 ~]# wget
[root@centos58 ~]# rpm --import jcameron-key.asc

3. Install RPM version of Webmin as below :

[root@centos58 ~]# rpm -Uvh webmin-1.580-1.noarch.rpm
Preparing...                ########################################### [100%]
Operating system is CentOS Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://centos58.ehowtuff.local:10000/
as root with your root password.

Option 2 : Setup Webmin using YUM

1. Login to your CentOS server with root privileges.
2. Download and import my GPG key with which the packages are signed, with the commands :

[root@centos58 ~]# wget
[root@centos58 ~]# rpm --import jcameron-key.asc

3. To install and update Webmin via RPM through yum, you have to create webmin.repo on /etc/yum.repos.d directory as below:

[root@centos58 ~]# vi /etc/yum.repos.d/webmin.repo
name=Webmin Distribution Neutral

4. Install with yum command :

[root@centos58 ~]# yum install webmin -y

Example :

[root@centos58 ~]# yum install webmin -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * Webmin:
 * base:
 * epel:
 * extras:
 * rpmforge:
 * updates:
Webmin                                                                       |  951 B     00:00
Webmin/primary                                                               |  13 kB     00:00
Webmin                                                                                      102/102
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:1.580-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

 Package                Arch                   Version                 Repository              Size
 webmin                 noarch                 1.580-1                 Webmin                  16 M

Transaction Summary
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 16 M
Downloading Packages:
webmin-1.580-1.noarch.rpm                                                    |  16 MB     02:39
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Operating system is CentOS Linux
  Installing     : webmin                                                                       1/1
Webmin install complete. You can now login to http://centos58.ehowtuff.local:10000/
as root with your root password.

  webmin.noarch 0:1.580-1


Option 3 : Setup Webmin using Tar File

Before downloading Webmin, please make sure that Perl 5 has been installed on your CentOS 5.8.
1. Download and extract the tar file :

[root@centos58 ~]# cd /tmp
[root@centos58 tmp]# wget
[root@centos58 tmp]# tar xzf webmin-1.580.tar.gz

2. Run ./ to install the webmin on /usr/local/webmin.

[root@centos58 tmp]# cd webmin-1.580
[root@centos58 webmin-1.580]# ./ /usr/local/webmin

This is just an example and the default admin was admin and the password is password.

[root@centos58 webmin-1.580]# ./ /usr/local/webmin
*            Welcome to the Webmin setup script, version 1.580        *
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin from /tmp/webmin-1.580 to /usr/local/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.

Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:

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):

Testing Perl ...
Perl seems to be installed ok

Operating system name:    CentOS Linux
Operating system version: 5.8

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):
Login name (default admin):
Login password:
Password again:
The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): y
Copying files to /usr/local/webmin ..

Creating web server config files..

Creating access control file..

Inserting path to perl into scripts..

Creating start and stop scripts..

Copying config files..

Configuring Webmin to start at boot time..
Created init script /etc/rc.d/init.d/webmin

Creating uninstall script /etc/webmin/ ..

Changing ownership and permissions ..

Running postinstall scripts ..
PID file /var/webmin/ does not exist
Subroutine setup_ca redefined at /usr/local/webmin/webmin/ line 72.
Subroutine install_webmin_module redefined at /usr/local/webmin/webmin/ line 122.
Subroutine grant_user_module redefined at /usr/local/webmin/webmin/ line 419.
Subroutine delete_webmin_module redefined at /usr/local/webmin/webmin/ line 460.
Subroutine file_basename redefined at /usr/local/webmin/webmin/ line 569.
Subroutine gnupg_setup redefined at /usr/local/webmin/webmin/ line 583.
Subroutine list_standard_modules redefined at /usr/local/webmin/webmin/ line 611.
Subroutine standard_chooser_button redefined at /usr/local/webmin/webmin/ line 643.
Subroutine list_third_modules redefined at /usr/local/webmin/webmin/ line 656.
Subroutine third_chooser_button redefined at /usr/local/webmin/webmin/ line 688.
Subroutine get_webmin_base_version redefined at /usr/local/webmin/webmin/ line 699.
Subroutine base_version redefined at /usr/local/webmin/webmin/ line 709.
Subroutine get_newmodule_users redefined at /usr/local/webmin/webmin/ line 720.
Subroutine save_newmodule_users redefined at /usr/local/webmin/webmin/ line 742.
Subroutine get_miniserv_sockets redefined at /usr/local/webmin/webmin/ line 766.
Subroutine fetch_updates redefined at /usr/local/webmin/webmin/ line 814.
Subroutine check_update_signature redefined at /usr/local/webmin/webmin/ line 881.
Subroutine find_cron_job redefined at /usr/local/webmin/webmin/ line 912.
Subroutine get_ipkeys redefined at /usr/local/webmin/webmin/ line 924.
Subroutine save_ipkeys redefined at /usr/local/webmin/webmin/ line 945.
Subroutine validate_key_cert redefined at /usr/local/webmin/webmin/ line 977.
Subroutine detect_operating_system redefined at /usr/local/webmin/webmin/ line 998.
Subroutine show_webmin_notifications redefined at /usr/local/webmin/webmin/ line 1033.
Subroutine get_webmin_notifications redefined at /usr/local/webmin/webmin/ line 1049.
Subroutine get_system_uptime redefined at /usr/local/webmin/webmin/ line 1238.
Subroutine list_operating_systems redefined at /usr/local/webmin/webmin/ line 1285.
Subroutine shared_root_directory redefined at /usr/local/webmin/webmin/ line 1310.
Subroutine submit_os_info redefined at /usr/local/webmin/webmin/ line 1347.
Subroutine get_webmin_id redefined at /usr/local/webmin/webmin/ line 1375.
Subroutine ip_match redefined at /usr/local/webmin/webmin/ line 1391.
Subroutine prefix_to_mask redefined at /usr/local/webmin/webmin/ line 1477.
Subroutine valid_allow redefined at /usr/local/webmin/webmin/ line 1491.
Subroutine get_preloads redefined at /usr/local/webmin/webmin/ line 1536.
Subroutine save_preloads redefined at /usr/local/webmin/webmin/ line 1548.
Subroutine get_tempdirs redefined at /usr/local/webmin/webmin/ line 1559.
Subroutine save_tempdirs redefined at /usr/local/webmin/webmin/ line 1576.
Subroutine get_module_install_type redefined at /usr/local/webmin/webmin/ line 1595.
Subroutine get_install_type redefined at /usr/local/webmin/webmin/ line 1612.
Subroutine list_cached_files redefined at /usr/local/webmin/webmin/ line 1642.
Subroutine show_restart_page redefined at /usr/local/webmin/webmin/ line 1661.
Subroutine cert_info redefined at /usr/local/webmin/webmin/ line 1679.
Subroutine cert_pem_data redefined at /usr/local/webmin/webmin/ line 1720.
Subroutine cert_pkcs12_data redefined at /usr/local/webmin/webmin/ line 1735.
Subroutine get_blocked_users_hosts redefined at /usr/local/webmin/webmin/ line 1761.
Subroutine show_ssl_key_form redefined at /usr/local/webmin/webmin/ line 1789.
Subroutine parse_ssl_key_form redefined at /usr/local/webmin/webmin/ line 1833.
Subroutine build_installed_modules redefined at /usr/local/webmin/webmin/ line 1906.
Subroutine get_latest_webmin_version redefined at /usr/local/webmin/webmin/ line 1948.
Subroutine filter_updates redefined at /usr/local/webmin/webmin/ line 1981.
Subroutine list_keys redefined at /usr/local/webmin/webmin/ line 23.
Subroutine list_keys_sorted redefined at /usr/local/webmin/webmin/ line 74.
Subroutine list_secret_keys redefined at /usr/local/webmin/webmin/ line 82.
Subroutine key_fingerprint redefined at /usr/local/webmin/webmin/ line 88.
Subroutine get_passphrase redefined at /usr/local/webmin/webmin/ line 105.
Subroutine put_passphrase redefined at /usr/local/webmin/webmin/ line 116.
Subroutine encrypt_data redefined at /usr/local/webmin/webmin/ line 128.
Subroutine decrypt_data redefined at /usr/local/webmin/webmin/ line 167.
Subroutine sign_data redefined at /usr/local/webmin/webmin/ line 224.
Subroutine verify_data redefined at /usr/local/webmin/webmin/ line 283.
Subroutine read_entire_file redefined at /usr/local/webmin/webmin/ line 327.
Subroutine write_entire_file redefined at /usr/local/webmin/webmin/ line 339.
Subroutine get_trust_level redefined at /usr/local/webmin/webmin/ line 349.
Subroutine delete_key redefined at /usr/local/webmin/webmin/ line 371.
Subroutine default_email_address redefined at /usr/local/webmin/webmin/ line 398.
Subroutine fetch_gpg_key redefined at /usr/local/webmin/webmin/ line 415.
Subroutine search_gpg_keys redefined at /usr/local/webmin/webmin/ line 442.

Enabling background status collection ..
PID file /var/webmin/ does not exist

Attempting to start Webmin mini web server..
Starting Webmin server in /usr/local/webmin
Pre-loaded WebminCore

Webmin has been installed and started successfully. Use your web
browser to go to


and login with the name and password you entered previously.

How to start webmin :

[root@centos58 ~]# service webmin start


[root@centos58 ~]# /etc/init.d/webmin start

How to stop webmin :

[root@centos58 ~]# service webmin stop
Stopping Webmin server in /usr/local/webmin


[root@centos58 ~]# /etc/init.d/webmin stop
Stopping Webmin server in /usr/local/webmin

How to check webmin status :

[root@centos58 ~]# /etc/init.d/webmin status
webmin (pid 5070) is running


[root@centos58 ~]# service webmin status
webmin (pid 4834) is running

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>