{"id":69,"date":"2016-12-08T01:15:58","date_gmt":"2016-12-07T23:15:58","guid":{"rendered":"http:\/\/itsimple.info\/?p=69"},"modified":"2023-07-09T14:26:57","modified_gmt":"2023-07-09T12:26:57","slug":"how-to-install-webmin-on-centos-7","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=69","title":{"rendered":"How to install Webmin on CentOS 7"},"content":{"rendered":"<p>The simplest and best way to get <a href=\"https:\/\/webmin.com\/about\/\"><strong>Webmin<\/strong><\/a> is to use automatic <a href=\"https:\/\/github.com\/webmin\/webmin\/blob\/master\/setup-repos.sh\" target=\"_blank\" rel=\"noopener\"><strong><code>setup-repos.sh<\/code><\/strong><\/a> script to configure official repositories on your <strong>RHEL<\/strong> or <strong>Debian<\/strong> derivative systems. It can be done in two easy steps:<\/p>\n<pre tabindex=\"0\"><code class=\"hljs nginx\"><span class=\"hljs-attribute\">curl<\/span> -o setup-repos.sh https:\/\/raw.githubusercontent.com\/webmin\/webmin\/master\/setup-repos.sh\nsh setup-repos.sh\n<\/code><\/pre>\n<p>This script will automatically setup our repository and install our GPG keys on your system, and provide <strong><code>webmin<\/code><\/strong> package for installation and easy upgrades in the future. The supported and tested systems are <strong>Red Hat Enterprise Linux<\/strong>, <strong>Alma<\/strong>, <strong>Rocky<\/strong>, <strong>Oracle<\/strong>, <strong>CentOS Stream<\/strong>, <strong>Fedora<\/strong> or <strong>Debian<\/strong>, <strong>Ubuntu<\/strong>, <strong>Kali<\/strong>.<\/p>\n<p>If you receive an error like <code>Hash algorithm SHA1 not available<\/code> on newer versions of RHEL, CentOS or related Linux distributions, you may need to run <code>update-crypto-policies --set DEFAULT:SHA1<\/code> before re-running <code>setup-repos.sh<\/code>.<\/p>\n<p>The longer way but safe way to install Webmin with YUM:<\/p>\n<ol>\n<li>login as root<\/li>\n<li>Add repository : #nano \/etc\/yum.repos.d\/webmin.repo<\/li>\n<li>paste this inside and save the file :\n<pre>[Webmin]\nname=Webmin Distribution Neutral\n#baseurl=http:\/\/download.webmin.com\/download\/yum\nmirrorlist=http:\/\/download.webmin.com\/download\/yum\/mirrorlist\nenabled=1<\/pre>\n<\/li>\n<li>Install webmin GPG key : # <code>wget http:\/\/www.webmin.com\/jcameron-key.asc\u00a0\u00a0\u00a0\u00a0\u00a0 #rpm --import jcameron-key.asc<\/code><\/li>\n<li>Install Webmin : #yum install webmin -y\u00a0\u00a0 then add support :\u00a0 #yum install perl-Digest-MD5<\/li>\n<li>Another way is to just download the rpm, for example : wget http:\/\/download.webmin.com\/download\/yum\/webmin-1.844-1.noarch.rpm<\/li>\n<li>then install optional dependencies with : <code> yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect <\/code> and then run the command : <code>rpm -U webmin-1.844-1.noarch.rpm<\/code><\/li>\n<li>Start the service and make it start automatically :\n<pre>#chkconfig webmin on\n#service webmin start<\/pre>\n<\/li>\n<li>Linux firewall will block all ports by default, there for just add rule allowing port 10000 through :<\/li>\n<\/ol>\n<pre>#firewall-cmd --zone=public --add-port=10000\/tcp --permanent<\/pre>\n<p>Reload firewall to apply settings :<\/p>\n<pre>#firewall-cmd --reload<\/pre>\n<p>Open a browser and enter URL : https:\/\/Your_Host_Name:10000, enter user: root\u00a0 and the password .<\/p>\n<p>Good Luck<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The simplest and best way to get Webmin is to use automatic setup-repos.sh script to configure official repositories on your RHEL or Debian derivative systems. It can be done in two easy steps: curl -o setup-repos.sh https:\/\/raw.githubusercontent.com\/webmin\/webmin\/master\/setup-repos.sh sh setup-repos.sh This script will automatically setup our repository and install our GPG keys on your system, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,13],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}