• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

CentOS - Webmin 1.470


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

Repository Configuration

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!

Install Pre-Requisites

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!

Installation

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.

Modify the firewall

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!

Logging In

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


See license specifics and DISCLAIMER

13 Comments

the above does not work... follow this quide http://www.webmin.com/rpm.html

Thanks for the link Pawel. We'll review this article and update it appropriately.

Under Repository Configuration I could not work out how to 'save and close' the file after this section:
[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 first comment once I'd worked out the save and close issue, this all worked perfectly for me

Thanks Mary. I'll actually go ahead and change those "vi" commands to use nano - it's a much easier text editor to jump into without a cheat sheet.

This will not work until you restart iptables using this command
/etc/init.d/iptables restart

After getting errors following the above instructions, went to http://www.webmin.com/rpm.html to get the latest info. Apparently the files now reside on a mirror, hence the error. Notice that the original baseurl is now commented out. Installed Webmin successfully following the docs on webmin.com.

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

This doesn't work. I have webmin installed, started and working. I have made the change to iptables and restarted it.

Still can't log in via http://ipaddress:1000

Anyone have any ideas about why?

you need to restart the ip tables use
sudo service iptables restart
You get somo ok and then you have access to the page.

Didn't work for me until I followed Keith Schmader's note:

This will not work until you restart iptables using this command
/etc/init.d/iptables restart

Maybe this should go on the article?

I went ahead and changed the article to specify "service iptables restart" instead of doing a "reload" there.

The instruction suggest to -

sudo rpm --import http://www.webmin.com/jcameron-key.asc

This returned a 404 error.

OK, sorry ignore this ... my error. :/

Add new comment