This tutorial will walk you through the installation of Webmin 1.470 on a CentOS server. This tutorial assumes you have gone through the CentOS - Setup article.
Contents |
Before you can install Webmin, you'll need to set up your repositories to pull the Webmin package via yum. To do this, we need to create a file in the /etc/yum.repos.d/ directory.
sudo nano /etc/yum.repos.d/webmin.repo
In this file, place the following:
[Webmin] name=Webmin Distribution Neutral baseurl=http://download.webmin.com/download/yum enabled=1
Save and close the file.
You'll also want to import the GPG key for the repository.
sudo rpm --import http://www.webmin.com/jcameron-key.asc
Now the repository is configured!
Now that we have the software downloaded we need to install a few pre-requisites before installation. Type the following command below to install the required modules:
sudo yum -y install perl-Net-SSLeay
Note: It *is* case sensitive!
Now it is time to install the Webmin package. To do so, use the command below:
sudo yum install webmin
Once the installation has completed you should get the following message:
Webmin install complete. You can now login to https://server:10000/ as root with your root password.
If you try to go there now, however, you won't be able to reach it, since your firewall is blocking the connection to port 10000. To fix this, edit the iptables file:
sudo nano /etc/sysconfig/iptables
After your port 22 line, add the following:
-I INPUT -p tcp --dport 10000 -j ACCEPT
Save the file, then reload iptables.
sudo service iptables restart
Great!
You are now ready to log into your Webmin console. To do this point your web browser to https://12.34.56.78:10000/ where you will be prompted with a login screen (be sure to change 12.34.56.78 to your server's IP). On your first login use the username root and type in your root password.
© 2011-2013 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

13 Comments
the above does not work...
Re: tutorial
Save and close the file
[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1
After much searching on google, I found this: "To save file, hold ESC + ‘:’ and type ‘wq’ to write and quit file." Hopefully this post will help others avoid this stage.
Just to add - unlike the
Re: vi
Restarting IPTables
/etc/init.d/iptables restart
Updated install from Webmin Docs
From webmin.com...
Using the Webmin YUM repository
If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing :
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
You should also fetch and install my GPG key with which the packages are signed, with the commands :
wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc
You will now be able to install with the command :
yum install webmin
All dependencies should be resolved automatically.
Good luck!
CR
Doesn't work.
Still can't log in via http://ipaddress:1000
Anyone have any ideas about why?
Use sudo service iptables restart
sudo service iptables restart
You get somo ok and then you have access to the page.
Restart iptables
This will not work until you restart iptables using this command
/etc/init.d/iptables restart
Maybe this should go on the article?
re: restart iptables
Importing GPG key fails
sudo rpm --import http://www.webmin.com/jcameron-key.asc
This returned a 404 error.
Importing GPG key fails
Add new comment