How to Install Webmin on Your VPS
| |Webmin is one of the best web-based interfaces for system administration for any Unix-like system. It’s completely free and open-source. With Webmin, you can configure services like Apache, PHP, DNS, file sharing, setup user accounts and much more, just by using your web browser. You don’t have to manually edit any Unix configuration files like /etc/password, you can use Webmin to do that. Webmin lets you manage a system from the console or remotely. Lots of servers use Webmin as it’s easy to use even for beginners. If you already know how to use another control panel like cPanel or Ajenti, getting used to Webmin will be much easier for you. You can quickly install a Webmin instance on your server and try it out before deciding whether or not you should use it.
In this tutorial we’ll show you how to install and access Webmin on CentOS/Fedora and Ubuntu/Debian. We’ll be using Linux VPS Hosting from RoseHosting.
Install Webmin on CentOS/Fedora
You can download Webmin in several package formats from Webmin’s official website. We need the RPM package to install Webmin on CentOS/Fedora.
Step 1 – Before proceeding with Webmin’s installation, install the following dependencies:
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty
Step 2 – Find the latest stable Webmin release and install it using the following command:
rpm -Uvh http://downloads.sourceforge.net/project/webadmin/webmin/1.791/webmin-1.791-1.noarch.rpm
The installation is done automatically. The administration username is ‘root‘ and its password is your current ‘root‘ password.
You can also create a repository for installing Webmin. Doing it this way you will always have the latest automatic updates via repository.
Step 1 – Create a ‘/etc/yum.repos.d/webmin.repo‘ file:
nano /etc/yum.repos.d/webmin.repo
Put the following lines:
[Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1
Step 2 – Download and install the GPG key for the package:
wget http://www.webmin.com/jcameron-key.asc rpm --import jcameron-key.asc
Step 3 – You can now install Webmin by executing:
yum install Webmin
If you want to change your Webmin password, use the following command:
/usr/libexec/webmin/changepass.pl /etc/webmin root NEWPASSWORD
Where ‘NEWPASSWORD‘ will be your new Webmin password.
Install Webmin on Ubuntu/Debian
Step 1 – Download the latest Debian package from Webmin’s official website
wget http://downloads.sourceforge.net/project/webadmin/webmin/1.791/webmin_1.791_all.deb
Step 2 – install it with the following command:
dpkg --install webmin_1.791_all.deb
That’s all. The username is ‘root‘ and its password is your current root password.
To change the Webmin password run the following command:
/usr/share/webmin/changepass.pl /etc/webmin root NEWPASSWORD
Where ‘NEWPASSWORD‘ will be your new Webmin password.
How To Access Webmin
Webmin by default is listening on port 10000 on all Linux distributions. Open a web browser and point it to https://YOURDOMAIN.TLD:10000 , enter ‘root‘ as username and your root password and you are ready to go.
After you log in, you’ll get an easy-to-use, familiar control panel interface for configuring your web server.
Disclaimer: This is a guest post by RoseHosting team. RoseHosting is a service of Rose Web Services LLC, a privately owned St. Louis, Missouri based company, founded in 2001 with the vision of becoming a leading provider of business and personal web hosting solutions.
Dear sawiyati,
Can you write one tutorial on how to refresh the Centos VPS, remove all extra packages added later. As, when some dependencies break on some version it makes additional packages not installable anymore and most people do not know how to revert back VPS to fresh state.
This is what I want. thank you very much. but this only cover Webmin part, not the Virtualmin part, can you please make a tutorial about it. anyway thanks for this quick post. I really appreciate. I have a small server in my home and I have a static IP, I need a complete tutorial about Virtualmin hostname, DNS and so on..if you can provide a great tutorial about it. I really appreciate.
Can you please write a tutorial how to secure it, i was searching for the net and came up with changing the port from default one, and adding ssl route