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

by skytech on January 21, 2012

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.

As always if you need any help you can reach us on twitter @ehowstuff or drop us a comment below. Jumping through archives page to read more articles..



Previous post:

Next post: