How to install Webmin on CentOS 7

How to install Webmin on CentOS 7

Webmin is a free and open source Web based Control Panel tool used by system adminsitrators to configure LIinux applications. Webmin tool lets you to manage internal system configuration like HTTP, DNS, PHP or MySQL, file sharing and etc.

To Install Webmin

The installing of Webmin requires certain packages. Use the following command to complete the action.

[root@node1 ~]# yum install perl-Net-SSLeay -y
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                                                                                                                 | 3.6 kB  00:00:00     

 Current download cancelled, interrupt (ctrl-c) again within two seconds
to exit.

extras                                                                                                                                                               | 3.4 kB  00:00:00     
updates                                                                                                                                                              | 3.4 kB  00:00:00     
(1/4): extras/7/x86_64/primary_db                                                                                                                                    | 183 kB  00:00:01     
(2/4): base/7/x86_64/group_gz                                                                                                                                        | 155 kB  00:00:01     
(3/4): updates/7/x86_64/primary_db                                                                                                                                   | 1.2 MB  00:00:05     
(4/4): base/7/x86_64/primary_db                                                                                                                                      | 5.6 MB  00:00:17     
Determining fastest mirrors
 * base: mirror.fibergrid.in
 * extras: mirror.fibergrid.in
 * updates: mirror.fibergrid.in
Resolving Dependencies
-->  Running transaction check
.
.
.
ing transaction
  Installing : perl-Net-SSLeay-1.55-4.el7.x86_64                                                                                                                                        1/1 
  Verifying  : perl-Net-SSLeay-1.55-4.el7.x86_64                                                                                                                                        1/1 

Installed:
  perl-Net-SSLeay.x86_64 0:1.55-4.el7                                                                                                                                                       

Complete!

Now install the package for webmin using the following command.

[root@node1 ~]# yum install http://download.webmin.com/download/yum/webmin-1.750-1.noarch.rpm
Loaded plugins: fastestmirror, langpacks
webmin-1.750-1.noarch.rpm                                                                                                                                            |  25 MB  00:09:24     
Examining /var/tmp/yum-root-N_UXj4/webmin-1.750-1.noarch.rpm: webmin-1.750-1.noarch
Marking /var/tmp/yum-root-N_UXj4/webmin-1.750-1.noarch.rpm to be installed
Resolving Dependencies
-->  Running transaction check
--->  Package webmin.noarch 0:1.750-1 will be installed
-->  Finished Dependency Resolution

Dependencies Resolved
.
.
.
Operating system is CentOS Linux
  Installing : webmin-1.750-1.noarch                                                                                                                                                    1/1 
Webmin install complete. You can now login to https://node1.example.com:10000/
as root with your root password.
  Verifying  : webmin-1.750-1.noarch                                                                                                                                                    1/1 

Installed:
  webmin.noarch 0:1.750-1                                                                                                                                                                   

Complete!

Next it is required to edit miniserv.conf file

[root@node1 ~]# vim /etc/webmin/miniserv.conf

Add the below mentioned lines to the conf file.

allow=127.0.0.1 192.168.5.141


Once you are done with the configuraton, start and enable the service for webmin. Allow the default port 10000 on firewall.

[root@node1 ~]# service webmin start
[root@node1 ~]# chkconfig webmin on
[root@node1 ~]# firewall-cmd --permanent --add-port=10000/tcp
success
[root@node1 ~]# firewall-cmd --reload
success

The installation of Webmin is complete. You can open the web browser and call https://192.168.5.141:10000 to access webmin control panel web user interface.

You need to replace with your ip address on that link.


Tag : CentOS Webmin
FAQ
Q
When I download the .tar.gz version of Webmin, why do I get a .tar file? Or why is the file so much larger than the size shown on the download page?
A
Your browser has automatically gunzipped the file for you. Just rename it to webmin-1.890.tar (if it hasn't been already) and skip the gunzip step in the install instructions.
Q
What effect will Webmin have on my existing configuration files?
A
Just installing Webmin will not cause any config file changes to be made. When you start to use it, only the config files related to the changes that you make in Webmin will be modified. For
Q
What does the error pam_ck_connector(webmin:session): cannot determine display-device mean?
A
If you see this error in /var/log/auth.log , edit the file /etc/pam.d/webmin and change the line @include common-session to @include common-session-noninteractive . Then run /etc/webmin/resta
Q
How do I change my Webmin password if I can't login?
A
Included with the Webmin distribution is a program called changepass.pl to solve erecisely this problem. Assuming you have installed Webmin in /usr/libexec/webmin, you could change the passw
Q
How do I install new modules in Webmin?
A
Download a new module as a .wbm file, enter the Webmin Configuration module and click on the Webmin Modules button. Then use the form at the top of the page to install the module either from the local filesystem of the server Webmin is running on, or uploaded from the client your browser is on.