You can install Webmin on my Linux AMI EC2 server using the following steps:
Connect / Access your EC2 instance via SSH
Download the Webmin package using following command:
sudo wget http://www.webmin.com/download/rpm/webmin-current.rpm
Unpack Webmin package. Use the following command, but update the version number if it has changed:
sudo rpm -U webmin-1.690-1.noarch.rpm
It may take few minutes to finish installation and you would see the success/complete message at the end of putty/console screen.
OPEN PORT FOR WEBMIN:
Now open port 10000 for webmin on your EC2 instance by updating security group settings, you can do it easily via AWS Management Console following these steps...
Go to EC2 Dashboard
Click on Security Groups and Select the Security Group you are using for EC2 or Default security group on Security Groups page
Click on "Inbond" Tab and then Click on "Edit" button, now in new popup window click on "Add Rule" button
Add Type "Custom TCP Rule" , Port Range "10000", Source "AnyWhere" and press "Save" button
So the output should be like this screen shot after opening port 10000
If you don’t have an Elastic IP attached with your EC2 instance please add one by clicking on "Elastic IP" link in the Left side navigation column on EC2 Dashboard.
SET ROOT PASSWORD:
Now you have to set a root password since ec2-user won’t work with webmin admin and amazon Linux AMIs didn’t come with a root password, so use the following command via SSH consol / Putty:
sudo /usr/libexec/webmin/changepass.pl /etc/webmin root PASSWORD
replace PASSWORD with your own new password.
restart Webmin using the following command:
sudo service webmin restart
Now you should be all set so login with your favorite web browser using the following URL but replace the IP with the Elastic IP of your EC2 instance:
eg. http://188.8.131.52:10000 OR https://184.108.40.206:10000
INSTALLING BIND for WEBMIN:
Bind didn’t show up under servers in the left navigation panel for Webmin, so this is what you do:
in the search box in left navigation, type Bind and click to search. IN the search results, click on first one that said “BIND DNS server” and install it.
After successful installation of Bind DNS, refresh page and Webmin should have Bind DNS listed under servers now in the left navigation menu.
click on Bind DNS server and you will see the admin for Bind.