This is a short an easy guide on how to setup Virtualmin GPL on CentOS 5.
The Very first thing you want to do when you get your server is to secure your SSH.
As soon as you have your IP address and password for your VPS/Dedicated Server, login via SSH:
From another unix system:
or from windows use putty:
simply put in your server ip and click connect
Login as: root
Password: use the password you got from your provider for your server
Now that you are logged in to the server, immediately change your root password
Now we can move on to the rest of the server setup:
Note: For security it would be better to implement a firewall (See: How to: CentOS 5 and Virtualmin Firewall Init Script
) and secure SSH (See: How to: CentOS Virtualmin secure SSH
) before you continue , but as this is written more for people who need Virtualmin to manage this would be a bit of a challenge and I will leave it out in this guide.
I always use vim as an editor: if you don`t have VIM installed you can always use nano or vi .
To install VIM on CentOS 5 run:
yum install vim-X11 vim-common vim-enhanced vim-minimal
1. Setup the Hostname:
x.x.x.x server1.example.com server1
Should look something like this in the end:
127.0.0.1 localhost.localdomain localhost x.x.x.x server1.example.com server1
Make sure it contains your hostname:
NETWORKING=yes NETWORKING_IPV6=no GATEWAY=x.x.x.x HOSTNAME=example.com
2. Verify Hostnames:
Check that hostname is valid:
It should return your the hostname you set.
If you still have hostname problems after a system restart see my post CentOS VPS Hostname resets or changes after restart
3. Now we have to make sure SELINUX is Disabled
and change the SELINUX line to:
Then to disable SELINUX on runtime lets run the command:
it should return – setenforce: SELinux is disabled
4. Update your system:
5. Make sure Perl is installed:
yum install perl
6. Install Virtualmin:
Install wget so we can download the Virtualmin install script:
yum install wget
Get the Install script:
Run the install script:
When the installation has finished simply use your browser to navigate to the Virtualmin control panel to check if its working:
Check out my
as well as Server hardening and Basic Setup guides that follow: