Friday, June 7, 2013

How to Setup Amazon EC2 Instance and Install Virtalmin/Webmin part 1

Im going to share how I setup an EC2 instance in amazon server.. and after creating I also install virtual/webmin.. so here are the steps..

First you need to create an AMI instance in amazon EC2

1. Sign up here : http://aws.amazon.com/

2. Under Amazon Web Services Go to EC2 virtual servers in the cloud.

3. Under the EC2 Dashboard you will see a tab for INSTANCES(allcaps) and under it you will see Instances, click on that then on the Upper Right corner click Launch Instance, a box will popup 


4. Select the option button Quick Launch Wizard
  • Name Your Instance: (ex. Web_Production)  
  • Choose a Key Pair
    • Create New (name it anything you want, like me I name my keypair apache) then download (you need that keypair to connect to your server via SSH).
  • Choose a Launch Configuration :
    • Select  More Amazon Machine Images (if you select that there are thousands of AMI to choose) 
  • Continue
5. Search for "ami-6735f30e", it is a Debian Linux server running in 32 bit, it has a built-in virtualmin. select it and continue



6. the next popup click Launch.


Now that you successfully created an AMI Instance, Its time for you to Associate an IP and connect to your server via SSH

Associate IP

You need first to create an Elastic IP (this will become your website IP address, you will going to point your Domain in this IP, but later on we are going to discuss about that) , and to do that Go back to your amazon account

1. Under the EC2 Dashboard you will see a tab for NETWORK & SECURITY under it you will see Elastic IPs, click on that. then on the upper right corner click Allocate New Address, message will popup click Yes, Allocate

2. After you allocate new address, a new IP address will show right click on that IP and click Associate Select the Instance that you created then click Yes, Associate.

After that you can now start connecting to your server..


first you will need a SSH client, I am using Putty as my SSH client. now lets start to connect

Connecting you SSH client to your Server.

1. Open Putty
       Under Session :
           Host Name : (the IP you created earlier)
           Port : 22
2. Attach your Keypair -go to  Connection > SSH > Auth , browse for your keypair, then click Open

3. Black screen will popup.. (similar to cmd prompt of windows) , type root as username,

And there you have it you are now connected to your server.

For now im not going to finish this Tutorial because I have a lots for deadlines to work for.. im going to finish it later..

:)

1 comment:

  1. The step by step process you showed ...was excellent.
    Can you kindly, show me how to install webmine on existing aws ec2.
    my mail-id: chenna36.reddy@gmail.com

    ReplyDelete