How to Install Webmin – RPM Method
Webmin is an alternative hosting free control panel which function like CPanel. Webmin provides easy to use interface for managing your Unix/Linux system and provides a nice option to setup user accounts, Apache, DNS, file sharing and much more. This Article will guide you on how to install webmin as your main control panel.
Download Required Package
Like all packages and programs in your Linux/Unix box, Webmin also have a required package and that is the handy dandy Perl module. You may be surprised when you see an error package telling that Webmin can’t find a PERL module when you are trying to install it. The missing PERL module is PERL:SSLeay
1 2 |
error: Failed dependencies: perl(Net::SSLeay) is needed by webmin-1.750-1.noarch |
We can easily fix the problem by installing perl-Net-SSLeay package via yum. Yum is my preferred way of installing modules since this hand application will install all required modules for you.
1 |
yum install perl-Net-SSLeay |
Download Webmin RPM
Before we proceed, we first need to download the RPM file. RPM stands for “Red Hat Package Manager” which is the default open source and most popular package management utility for Red Hat based systems like (RHEL, CentOS and Fedora). The tool allows system administrators and users to install, update, uninstall, query, verify and manage system software packages in Unix/Linux operating systems.
1 2 3 |
cd /tmp wget http://www.webmin.com/jcameron-key.asc wget http://www.webmin.com/download/rpm/webmin-current.rpm |
What we have instructed our server is change directory to opt in the main folder, download the jcameron key (we need this later) which is the public encrpytion key. We then instructed our server to download the latest RPM file.
Install Webmin Using RPM Command
We are now ready to install/update webmin using RPM approach but before we move on, we should load up the PGP key that we have downloaded earlier.
1 |
rpm --import jcameron-key.asc |
Finally we issue an upgrade command which will check for any installed version of webmin and automatically remove them and install our new version.
1 |
rpm -Uvh webmin-*.rpm |
RPM parameter decoded
- i – install (This installs a new package)
- v – verbose (using or expressed in more words than are needed)
- h – hash (Print 50 hash marks as the package archive is unpacked)
- u – upgrade (This upgrades or installs the package currently installed to a newer version. This is the same as install, except all other version(s) of the package are removed after the new package is installed)
Accessing Webmin
Webmin’s default port is 10000 and usually runs on HTTPS mode only
1 2 3 4 5 |
#non-ssl access http://111.222.333.444:10000 #ssl access https://111.222.333.444:10000 |
Make sure to open Port 10000 on your firewall or temporarily disable your firewall
Change Webmin Root Password
You can easily change your root password for webmin without affecting your root account password.
1 |
/usr/libexec/webmin/changepass.pl /etc/webmin root secretpassword |
Linking CSF/LFD to Webmin
If you have installed CSF / LFD, you can add the user interface to manage this module inside webmin/virtualmin.
Openup Webmin Configuration and then locate “Webmin Modules”.
Assuming you have already installed CSF using this guide, we just need to install from local file. the file we need to load is located at /etc/csf/csfwebmin.tgz
After adding CSF as a new module, a new link named “ConfigServer Security and Firewall” will appear under System menu in our webmin. This will load up ConfigServers control panel.
Enjoy!