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/