How to Install Webmin 1.580 on Fedora 16 Using RPM

Webmin is a freeware program that provide web-based interface for system administration and system configuration tool for administrators. With Webmin you can setup user accounts, DNS, file sharing and etc. In this post, i will show how to install Webmin on Fedora 16 server using RPM version. This steps may also working on other versions such as Fedora 14 and fedora 15.

Download required RPM file here (http://download.webmin.com/download/yum/)

[root@fedora16 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
--2012-04-07 21:45:46--  http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm
Resolving download.webmin.com... 67.228.198.100
Connecting to download.webmin.com|67.228.198.100|: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  62.8K/s   in 3m 3s

2012-04-07 21:48:51 (91.1 KB/s) - âwebmin-1.580-1.noarch.rpmâ

Install RPM version of Webmin as below :

[root@fedora16 ~]# rpm -Uvh webmin-1.580-1.noarch.rpm
warning: webmin-1.580-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 11f63c51: NOKEY
Preparing...                ########################################### [100%]
Operating system is Fedora Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to https://fedora16.ehowstuff.local:10000/
as root with your root password.

Start Webmin service :

[root@fedora16 ~]# service webmin start

https://fedora16.ehowstuff.local:10000/

How to Install Webmin 1.580 on RHEL 6/CentOS 6 Using tar.gz File

Webmin is a freeware program that provide web-based interface for system administration and system configuration tool for administrators. With Webmin you can setup user accounts, DNS, file sharing and etc. In this post, i will show how to install Webmin on Redhat Enterprise Linux 6 (RHEL 6) server using tar.gz File. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x, RHEL 5.x and RHEL 6.x.

[root@centos62 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
[root@centos62 ~]# cd /tmp
[root@centos62 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
--2012-03-25 22:33:04--  http://prdownloads.sourceforge.net/webadmin/webmin-1.580.tar.gz
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz [following]
--2012-03-25 22:33:05--  http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Reusing existing connection to prdownloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz [following]
--2012-03-25 22:33:06--  http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580.tar.gz
Resolving cdnetworks-kr-1.dl.sourceforge.net... 211.39.135.162
Connecting to cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16081299 (15M) [application/x-gzip]
Saving to: âwebmin-1.580.tar.gzâ

100%[==========================================================>] 16,081,299  68.2K/s   in 4m 14s

2012-03-25 22:37:21 (61.8 KB/s) - âwebmin-1.580.tar.gzâ

When unpacked, the distribution creates a subdirectory called webmin-1.580 :

[root@centos62 tmp]# tar -xzvf webmin-1.580.tar.gz
[root@centos62 tmp]# cd webmin-1.580
[root@centos62 webmin-1.580]# pwd
/tmp/webmin-1.580

When the setup.sh script is run, it will ask the following questions :

  • The Webmin configuration directory
  • The Webmin log directory
  • The full path to perl on your system
  • Your Operating system type
  • Web server port
  • Web server login and password
  • Web server hostname
  • Use SSL
  • Start Webmin at boot time
[root@centos62 webmin-1.580]# ./setup.sh
***********************************************************************
*            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 in /tmp/webmin-1.580 ...

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

***********************************************************************
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
***********************************************************************
Creating web server config files..
..done

Creating access control file..
..done

Inserting path to perl into scripts..
..done

Creating start and stop scripts..
..done

Copying config files..
..done

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

Creating uninstall script /etc/webmin/uninstall.sh ..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
PID file /var/webmin/miniserv.pid does not exist
..done

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

Attempting to start Webmin mini web server..
Starting Webmin server in /tmp/webmin-1.580
Pre-loaded WebminCore
..done

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

  http://centos62.ehowstuff.local:10000/

and login with the name and password you entered previously.

Stop Iptables :

[root@centos62 webmin-1.580]# service iptables stop
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]

To access Webmin administration console through web interface, navigate the server URL to your web browser :
http://serveripaddress:10000/

How to Install Webmin 1.580 on RHEL 6/CentOS 6 Using RPM

Webmin is a freeware program that provide web-based interface for system administration and system configuration tool for administrators. With Webmin you can setup user accounts, DNS, file sharing and etc. In this post, i will show how to install Webmin on Redhat Enterprise Linux 6 (RHEL 6) server using RPM version. This steps may also working on other versions such as CentOS 5.1, CentOS 5.2, CentOS 5.3, CentOS 5.4, CentOS 5.5, CentOS 5.6, CentOS 5.7, CentOS 6.x, RHEL 5.x and RHEL 6.x.

1. Download required RPM file here (http://download.webmin.com/download/yum/)

[root@rhel6 ~]# wget http://download.webmin.com/download/yum/webmin-1.580-1.noarch.rpm

or

[root@rhel6 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
[root@rhel6 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
--2012-03-25 20:03:28--  http://prdownloads.sourceforge.net/webadmin/webmin-1.580-1.noarch.rpm
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm [following]
--2012-03-25 20:03:34--  http://downloads.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm [following]
--2012-03-25 20:03:45--  http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.580/webmin-1.580-1.noarch.rpm
Resolving cdnetworks-kr-1.dl.sourceforge.net... 211.39.135.162
Connecting to cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|: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  49.4K/s   in 20m 53s

2012-03-25 20:24:43 (13.3 KB/s) - âwebmin-1.580-1.noarch.rpmâ

Install RPM version of Webmin as below :

[root@rhel6 ~]# rpm -Uvh webmin-1.580-1.noarch.rpm
warning: webmin-1.580-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 11f63c51: NOKEY
Preparing...                ########################################### [100%]
Operating system is Redhat Enterprise Linux
   1:webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://rhel6:10000/
as root with your root password.

Start Webmin :

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

To login Webmin :
You must enter a username and password to login to the Webmin server
http://serveripaddress:10000/

How to Uninstall Webmin 1.570 on CentOS 5.7

In this post, i will guide on how to properly remove the Webmin package that was installed from tar.gz file.

Just run the command /etc/webmin/uninstall.sh

[root@CentOS57 ~]# /etc/webmin/uninstall.sh
Are you sure you want to uninstall Webmin? (y/n) : y

Stopping Webmin server in /usr/local/webmin
Running uninstall scripts ..
Deleted init script /etc/rc.d/init.d/webmin
Subroutine list_servers redefined at /usr/local/webmin/servers/servers-lib.pl line 91.
Subroutine list_servers_sorted redefined at /usr/local/webmin/servers/servers-lib.pl line 110.
Subroutine get_server redefined at /usr/local/webmin/servers/servers-lib.pl line 142.
Subroutine save_server redefined at /usr/local/webmin/servers/servers-lib.pl line 157.
Subroutine delete_server redefined at /usr/local/webmin/servers/servers-lib.pl line 174.
Subroutine can_use_server redefined at /usr/local/webmin/servers/servers-lib.pl line 187.
Subroutine list_all_groups redefined at /usr/local/webmin/servers/servers-lib.pl line 207.
Subroutine logged_in redefined at /usr/local/webmin/servers/servers-lib.pl line 275.
Subroutine get_server_types redefined at /usr/local/webmin/servers/servers-lib.pl line 300.
Subroutine this_server redefined at /usr/local/webmin/servers/servers-lib.pl line 310.
Subroutine get_my_address redefined at /usr/local/webmin/servers/servers-lib.pl line 329.
Subroutine address_to_broadcast redefined at /usr/local/webmin/servers/servers-lib.pl line 358.
Subroutine test_server redefined at /usr/local/webmin/servers/servers-lib.pl line 372.
Subroutine find_cron_job redefined at /usr/local/webmin/servers/servers-lib.pl line 391.
Subroutine find_servers redefined at /usr/local/webmin/servers/servers-lib.pl line 404.
Deleting /usr/local/webmin ..
Deleting /etc/webmin ..
Done!

How to Modify the Default Webmin’s Port Number on CentOS 5.7

To improve the security on my linux centOS server, it is recommended to change the default port of the service and change it to custom webmin’s port number. In this post i will show you on how to modify the default port, 10000 to 10101.

Check default port number :

[root@CentOS57 ~]# netstat -plunt | grep perl
tcp        0      0 0.0.0.0:10000               0.0.0.0:*                   LISTEN      4521/perl   
udp        0      0 0.0.0.0:10000               0.0.0.0:*                               4521/perl  

Where is the webmin port number stored?
Webmin port number store in /etc/webmin/miniserv.conf

To modify the default port, 10000 to 10101, open the /etc/webmin/miniserv.conf file and modify line 1 and 16.

1 port=10101
..
..
16 listen=10101
..

Sample configuration file :

[root@CentOS57 ~]# vi /etc/webmin/miniserv.conf
port=10101
root=/usr/local/webmin
mimetypes=/usr/local/webmin/mime.types
addtype_cgi=internal/cgi
realm=Webmin Server
logfile=/var/webmin/miniserv.log
errorlog=/var/webmin/miniserv.error
pidfile=/var/webmin/miniserv.pid
logtime=168
ppath=
ssl=0
env_WEBMIN_CONFIG=/etc/webmin
env_WEBMIN_VAR=/var/webmin
atboot=1
logout=/etc/webmin/logout-flag
listen=10101
denyfile=\.pl$
log=1
blockhost_failures=5
blockhost_time=60
syslog=1
session=1
premodules=WebminCore
server=MiniServ/1.570
userfile=/etc/webmin/miniserv.users
keyfile=/etc/webmin/miniserv.pem
passwd_file=/etc/shadow
passwd_uindex=0
passwd_pindex=1
passwd_cindex=2
passwd_mindex=4
passwd_mode=0
preroot=blue-theme
passdelay=1

Restart webmin service using this command:

[root@CentOS57 ~]# /etc/webmin/restart
Stopping Webmin server in /usr/local/webmin
Starting Webmin server in /usr/local/webmin
Pre-loaded WebminCore

Check the modified webmin’s port number

[root@CentOS57 ~]# netstat -plunt | grep perl
tcp        0      0 0.0.0.0:10101               0.0.0.0:*                   LISTEN      4750/perl   
udp        0      0 0.0.0.0:10101               0.0.0.0:*                               4750/perl

Now you can access the Webmin through url with new custom port.
http://serverip:10101

How to Stop, Start and Reload Webmin Service on CentOS 5.7

It would be a good idea to not have Webmin running all the time. You can start Webmin via ssh when you need it. Not also Webmin, it’s recommended to install the software or packages in linux when you need it. This will improve the security for your server. Less port opened, more secure your server. In this post i will show you on how to stop, start,reload and restart the Webmin service via ssh for CentOS 5.7. Assumed that the webmin has been install from the tar.gz file as documented on my previous post “How to Install Webmin 1.570 on CentOS 5.7 from tar.gz file

1. Command to stop webmin service :

[root@CentOS57 ~]# /etc/webmin/stop
Stopping Webmin server in /usr/local/webmin

2. Command to start webmin service :

[root@CentOS57 ~]# /etc/webmin/start
Starting Webmin server in /usr/local/webmin
Pre-loaded WebminCore

3. Command to reload webmin service :

[root@CentOS57 ~]# /etc/webmin/reload
Reloading Webmin server in /usr/local/webmin

4. Command to restart webmin service :

[root@CentOS57 ~]# /etc/webmin/restart
Stopping Webmin server in /usr/local/webmin
Starting Webmin server in /usr/local/webmin
Pre-loaded WebminCore

How to Install Webmin 1.570 on CentOS 5.7 from tar.gz file

In this post, i will share on how to install the Webmin, a web-based interface for system administration for Linux, on CentOS 5.7 server. Different from my previous post on “How to Install Webmin 1.570-1 on CentOS 6.2 using RPM“, this post will show you the steps on installing the webmin from the tar.gz file.

Download the tar.gz file.

[root@CentOS57 ~]# cd /tmp
[root@CentOS57 tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.570.tar.gz
--2012-01-21 08:22:30--  http://prdownloads.sourceforge.net/webadmin/webmin-1.570.tar.gz
Resolving prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.570/webmin-1.570.tar.gz [following]
--2012-01-21 08:22:31--  http://downloads.sourceforge.net/project/webadmin/webmin/1.570/webmin-1.570.tar.gz
Resolving downloads.sourceforge.net... 216.34.181.59
Reusing existing connection to prdownloads.sourceforge.net:80.
HTTP request sent, awaiting response... 302 Found
Location: http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.570/webmin-1.570.tar.gz [following]
--2012-01-21 08:22:31--  http://cdnetworks-kr-1.dl.sourceforge.net/project/webadmin/webmin/1.570/webmin-1.570.tar.gz
Resolving cdnetworks-kr-1.dl.sourceforge.net... 211.39.135.162
Connecting to cdnetworks-kr-1.dl.sourceforge.net|211.39.135.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15200156 (14M) [application/x-gzip]
Saving to: `webmin-1.570.tar.gz'

100%[==========================================================>] 15,200,156  81.3K/s   in 3m 10s

2012-01-21 08:25:42 (78.2 KB/s) - `webmin-1.570.tar.gz' saved [15200156/15200156]

Extract the file.

[root@CentOS57 tmp]# tar xzvf webmin-1.570.tar.gz
[root@CentOS57 tmp]# cd webmin-1.570

When the setup.sh script is run, it will ask the following questions :

The Webmin configuration directory
-The directory in which all Webmin configuration information is stored. This is now separate from the Webmin install directory, so that configurations are saved when you upgrade.
If you have previously installed Webmin and use the same config directory, this will be the only question asked.

The Webmin log directory
-The location for pid and webserver log files.

The full path to perl on your system
-This is usually /usr/bin/perl or /usr/local/bin/perl

Your Operating system type
-In Webmin versions 0.990 and above, this question is only asked if your operating system cannot be automatically determined.
The setup script will display a list of supported systems. If your OS is not on the list, you can try choosing the closest match. However this may not work properly, and may even cause serious problems!

Web server port
-The TCP port that the Webmin web server will listen on.

Web server login and password
-The login name and password used to acess the Webmin web server.

Web server hostname
-The hostname of the machine on which Webmin will run.

Use SSL
-This question will only be asked if your system has the Perl SSL libraries installed. See below for more..

Start Webmin at boot time
-If your OS is supported, Webmin will ask if you want to have it automatically started at boot time.

[root@CentOS57 webmin-1.570]# ./setup.sh /usr/local/webmin
***********************************************************************
*            Welcome to the Webmin setup script, version 1.570        *
***********************************************************************
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.570 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.7

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

Creating web server config files..
..done

Creating access control file..
..done

Inserting path to perl into scripts..
..done

Creating start and stop scripts..
..done

Copying config files..
..done

Creating uninstall script /etc/webmin/uninstall.sh ..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
PID file /var/webmin/miniserv.pid does not exist
Subroutine setup_ca redefined at /usr/local/webmin/webmin/webmin-lib.pl line 72.
Subroutine install_webmin_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 122.
Subroutine grant_user_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 419.
Subroutine delete_webmin_module redefined at /usr/local/webmin/webmin/webmin-lib.pl line 460.
Subroutine file_basename redefined at /usr/local/webmin/webmin/webmin-lib.pl line 569.
Subroutine gnupg_setup redefined at /usr/local/webmin/webmin/webmin-lib.pl line 583.
Subroutine list_standard_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 611.
Subroutine standard_chooser_button redefined at /usr/local/webmin/webmin/webmin-lib.pl line 643.
Subroutine list_third_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 656.
Subroutine third_chooser_button redefined at /usr/local/webmin/webmin/webmin-lib.pl line 688.
Subroutine get_webmin_base_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 699.
Subroutine base_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 709.
Subroutine get_newmodule_users redefined at /usr/local/webmin/webmin/webmin-lib.pl line 720.
Subroutine save_newmodule_users redefined at /usr/local/webmin/webmin/webmin-lib.pl line 742.
Subroutine get_miniserv_sockets redefined at /usr/local/webmin/webmin/webmin-lib.pl line 766.
Subroutine fetch_updates redefined at /usr/local/webmin/webmin/webmin-lib.pl line 814.
Subroutine check_update_signature redefined at /usr/local/webmin/webmin/webmin-lib.pl line 881.
Subroutine find_cron_job redefined at /usr/local/webmin/webmin/webmin-lib.pl line 912.
Subroutine get_ipkeys redefined at /usr/local/webmin/webmin/webmin-lib.pl line 924.
Subroutine save_ipkeys redefined at /usr/local/webmin/webmin/webmin-lib.pl line 945.
Subroutine validate_key_cert redefined at /usr/local/webmin/webmin/webmin-lib.pl line 977.
Subroutine detect_operating_system redefined at /usr/local/webmin/webmin/webmin-lib.pl line 998.
Subroutine show_webmin_notifications redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1033.
Subroutine get_webmin_notifications redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1049.
Subroutine get_system_uptime redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1238.
Subroutine list_operating_systems redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1285.
Subroutine shared_root_directory redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1310.
Subroutine submit_os_info redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1347.
Subroutine get_webmin_id redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1375.
Subroutine ip_match redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1391.
Subroutine prefix_to_mask redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1463.
Subroutine valid_allow redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1477.
Subroutine get_preloads redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1522.
Subroutine save_preloads redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1534.
Subroutine get_tempdirs redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1545.
Subroutine save_tempdirs redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1562.
Subroutine get_module_install_type redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1581.
Subroutine get_install_type redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1598.
Subroutine list_cached_files redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1628.
Subroutine show_restart_page redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1647.
Subroutine cert_info redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1665.
Subroutine cert_pem_data redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1706.
Subroutine cert_pkcs12_data redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1721.
Subroutine get_blocked_users_hosts redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1747.
Subroutine show_ssl_key_form redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1775.
Subroutine parse_ssl_key_form redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1819.
Subroutine build_installed_modules redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1892.
Subroutine get_latest_webmin_version redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1934.
Subroutine filter_updates redefined at /usr/local/webmin/webmin/webmin-lib.pl line 1967.
Subroutine list_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 23.
Subroutine list_keys_sorted redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 74.
Subroutine list_secret_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 82.
Subroutine key_fingerprint redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 88.
Subroutine get_passphrase redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 105.
Subroutine put_passphrase redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 116.
Subroutine encrypt_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 128.
Subroutine decrypt_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 167.
Subroutine sign_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 224.
Subroutine verify_data redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 283.
Subroutine read_entire_file redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 327.
Subroutine write_entire_file redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 339.
Subroutine get_trust_level redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 349.
Subroutine delete_key redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 371.
Subroutine default_email_address redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 398.
Subroutine fetch_gpg_key redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 415.
Subroutine search_gpg_keys redefined at /usr/local/webmin/webmin/gnupg-lib.pl line 442.
..done

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

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

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

  http://CentOS57:10000/

and login with the name and password you entered previously.

How to Uninstall Webmin on CentOS 6.2

In this post, i will guide on how to properly remove the Webmin package.

Check the webmin installed version, so that you can easily remove the package by specified exact package name.

    [root@centos6 ~]# rpm -qa webmin
    webmin-1.570-1.noarch
    

Remove rpm package using this command :

    [root@centos6 ~]# rpm -e webmin-1.570-1.noarch
    Running uninstall scripts ..
    Deleted init script /etc/rc.d/init.d/webmin
    Subroutine list_servers redefined at /usr/libexec/webmin/servers/servers-lib.pl line 91.
    Subroutine list_servers_sorted redefined at /usr/libexec/webmin/servers/servers-lib.pl line 110.
    Subroutine get_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 142.
    Subroutine save_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 157.
    Subroutine delete_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 174.
    Subroutine can_use_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 187.
    Subroutine list_all_groups redefined at /usr/libexec/webmin/servers/servers-lib.pl line 207.
    Subroutine logged_in redefined at /usr/libexec/webmin/servers/servers-lib.pl line 275.
    Subroutine get_server_types redefined at /usr/libexec/webmin/servers/servers-lib.pl line 300.
    Subroutine this_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 310.
    Subroutine get_my_address redefined at /usr/libexec/webmin/servers/servers-lib.pl line 329.
    Subroutine address_to_broadcast redefined at /usr/libexec/webmin/servers/servers-lib.pl line 358.
    Subroutine test_server redefined at /usr/libexec/webmin/servers/servers-lib.pl line 372.
    Subroutine find_cron_job redefined at /usr/libexec/webmin/servers/servers-lib.pl line 391.
    Subroutine find_servers redefined at /usr/libexec/webmin/servers/servers-lib.pl line 404.
    

How to Install Webmin 1.570-1 on CentOS 6.2 using RPM

In this post, i will share you on how to install Webmin, a web-based interface for system administration for Linux, on CentOS 6.2. Assumed that you have root access and understand the basic usage of the webmin software.

1. Download Webmin:

    [root@centos6 ~]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.570-1.noarch.rpm
    --2012-01-07 05:28:08--  http://prdownloads.sourceforge.net/webadmin/webmin-1.570-1.noarch.rpm
    Resolving prdownloads.sourceforge.net... 216.34.181.59
    Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: http://downloads.sourceforge.net/project/webadmin/webmin/1.570/webmin-1.570-1.noarch.rpm [following]
    --2012-01-07 05:28:09--  http://downloads.sourceforge.net/project/webadmin/webmin/1.570/webmin-1.570-1.noarch.rpm
    Resolving downloads.sourceforge.net... 216.34.181.59
    Reusing existing connection to prdownloads.sourceforge.net:80.
    HTTP request sent, awaiting response... 302 Found
    Location: http://cdnetworks-kr-2.dl.sourceforge.net/project/webadmin/webmin/1.570/webmin-1.570-1.noarch.rpm [following]
    --2012-01-07 05:28:09--  http://cdnetworks-kr-2.dl.sourceforge.net/project/webadmin/webmin/1.570/webmin-1.570-1.noarch.rpm
    Resolving cdnetworks-kr-2.dl.sourceforge.net... 211.39.135.163
    Connecting to cdnetworks-kr-2.dl.sourceforge.net|211.39.135.163|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 16358730 (16M) [application/x-rpm]
    Saving to: âwebmin-1.570-1.noarch.rpmâ
    
    100%[======================================================>] 16,358,730  16.8K/s   in 15m 45s
    
    2012-01-07 05:43:55 (16.9 KB/s) - âwebmin-1.570-1.noarch.rpmâ
    

2. Add the GPG Key:

    [root@centos6 ~]# rpm --import http://www.webmin.com/jcameron-key.asc
    

3. Install webmin :

    [root@centos6 ~]# rpm -U webmin-1.570-1.noarch.rpm
    Operating system is CentOS Linux
    Webmin install complete. You can now login to http://youripaddress:10000/
    as root with your root password.
    

4. Start webmin service :

    [root@centos6 ~]# service webmin start
    

or

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

5. Make webmin auto start after reboot the centOS server:

    [root@centos6 ~]# chkconfig webmin on
    [root@centos6 ~]# chkconfig --list
    webmin          0:off   1:off   2:on    3:on    4:on    5:on    6:off
    

6. Login the webmin web interface :

http://youripaddress:10000

How to Uninstall Webmin in CentOS 5.5

I will show you on how to uninstall the webmin from CentOS server. Just run below command :

    [root@server ~]# /etc/webmin/uninstall.sh
    Are you sure you want to uninstall Webmin? (y/n) : y
    
    Stopping Webmin server in /tmp/webmin-1.550
    Running uninstall scripts ..
    /etc/webmin/uninstall.sh: line 8: /tmp/webmin-1.550/run-uninstalls.pl: No such file or directory
    Deleting /tmp/webmin-1.550 ..
    Deleting /etc/webmin ..
    Done!
    

How to Install Webmin 1.550 Using TAR File

In this post i will guide you on how to install Webmin 1.550 using tar file. This post assume that the CentOS 5.5 has been installed. Please follow below steps to install the Webmin using tar file that downloaded from webmin website.

1. Download and extract the tar file.

    [root@server ~]# cd /tmp
    [root@server tmp]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.550.tar.gz
    [root@server tmp]# tar xzf webmin-1.550.tar.gz
    [root@server tmp]# cd webmin-1.550
    

2. Run ./setup.sh to install the webmin.

    [root@server webmin-1.550]# ./setup.sh
    ***********************************************************************
    *            Welcome to the Webmin setup script, version 1.550        *
    ***********************************************************************
    Webmin is a web-based interface that allows Unix-like operating
    systems and common Unix services to be easily administered.
    
    Installing Webmin in /tmp/webmin-1.550 ...
    
    ***********************************************************************
    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.5
    
    ***********************************************************************
    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:
    Use SSL (y/n): y
    Start Webmin at boot time (y/n): y
    ***********************************************************************
    Creating web server config files..
    ..done
    
    Creating access control file..
    ..done
    
    Inserting path to perl into scripts..
    ..done
    
    Creating start and stop scripts..
    ..done
    
    Copying config files..
    ..done
    
    Configuring Webmin to start at boot time..
    Created init script /etc/rc.d/init.d/webmin
    ..done
    
    Creating uninstall script /etc/webmin/uninstall.sh ..
    ..done
    
    Changing ownership and permissions ..
    ..done
    
    Running postinstall scripts ..
    ..done
    
    Enabling background status collection ..
    ..done
    
    Attempting to start Webmin mini web server..
    Starting Webmin server in /tmp/webmin-1.550
    Pre-loaded WebminCore
    ..done
    
    ***********************************************************************
    Webmin has been installed and started successfully. Use your web
    browser to go to
    
      https://server.intranet.local:10000/
    
    and login with the name and password you entered previously.
    
    Because Webmin uses SSL for encryption only, the certificate
    it uses is not signed by one of the recognized CAs such as
    Verisign. When you first connect to the Webmin server, your
    browser will ask you if you want to accept the certificate
    presented, as it does not recognize the CA. Say yes.
    
    

How to Install Webmin in Centos 5.5 Using Yum

On the previous article about webmin, i have guided you on how to install webmin in CentOS 5.5 using rpm. Meanwhile, in this article, i will guide you on how to install Webmin in centos using yum command that much more simple and can get you the latest version of webmin. Please follow the steps below to proceed.

1. Login to your CentOS server with root privileges.

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

    [root@server ~]# vi /etc/yum.repos.d/webmin.repo
    

Contain of webmin.repo

    [Webmin]
    name=Webmin Distribution Neutral
    #baseurl=http://download.webmin.com/download/yum
    mirrorlist=http://download.webmin.com/download/yum/mirrorlist
    enabled=1
    

3. Install the dependencies using yum command.

    [root@server ~]# yum -y install perl-Net-SSLeay
    

4. Install with yum command :

    [root@server ~]# yum install webmin
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * Webmin: webmin.mirror.somersettechsolutions.co.uk
     * addons: centos.maulvi.net
     * base: centos.maulvi.net
     * extras: centos.maulvi.net
     * updates: centos.ipserverone.com
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package webmin.noarch 0:1.540-1 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    =====================================================================================
     Package            Arch               Version              Repository          Size
    =====================================================================================
    Installing:
     webmin             noarch             1.540-1              Webmin              16 M
    
    Transaction Summary
    =====================================================================================
    Install       1 Package(s)
    Upgrade       0 Package(s)
    
    Total download size: 16 M
    Is this ok [y/N]: y
    Downloading Packages:
    webmin-1.540-1.noarch.rpm                                     |  16 MB     07:05
    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 https://server.intranet.local:10000/
    as root with your root password.
    
    Installed:
      webmin.noarch 0:1.540-1
    
    Complete!