AWS

How to Install Web Server in EC2 Instance

Web Server in EC2 Instance

In this article, I will show you how to create EC2 instance (Windows Server 2019) and then install web server in EC2 instance.

1- Log in to AWS account and then go to the AWS Services tab at the top left corner.

aws management console

2- Click on Launch Instance button.

aws launch instance

3- Select Windows Server 2019

aws instance choose ami

4- Select Instance type
Click Next : Configure Instance details

aws choose instance type

5- Number of instances – 1
Network – default.
Subnets – default
Auto-assign Public IP – Enable.
Click on Next : Add Storage.

aws configure instance details

6- Select Storage
Click Next : Add Tags.

aws add storage

7- Tag – web server
Click on Next : Configure Security Groups

aws add tags

8- Security group name – My Security Group
Select Protocols – (RDP, HTTP, HTTPS) and then select source anywhere
Click on Review and Launch

aws configure security group

9- Review the instance details, parameters and then click launch.

aws review instance launch

10- Select Create a new key pair
Type a name for your key – Web Server
Select the download key pair button and save it in your secured folder
After downloading the key pair then click launch instance.

aws download key pair

11- Select View Instances

aws launch status

12- Instance status is running
Select instance and then click connect.

aws instance running

13- Click on get password.

aws instance get password

14- Click choose file button.

aws key pair path

15- Select the key pair you have downloading in earlier and then click ok.

Click Decrypt Password.

aws decrypt password

16- Copy the password and then select download remote desktop file

aws download remote desktop

17- Click connect.
Paste password and then click ok.

remote desktop connection

18- Click yes
EC2 Instance (windows server 2019 desktop)

install web server in EC2 instance

Install Web Server IIS

1- Server Manager, Dashboard and then select Add roles and features.

sever manager

2- Add roles and features wizard click next.

add roles and features wizard

3- Install web server IIS installation, leave default Role-based or feature-based installation selected, and then click Next.

role based or features

4- Server selection, Select server and then click next.

select server from pool

5- From the server roles, select the checkbox next to Web Server (IIS).

select server roles

5- A new window will popup that additional features are required, simply click the Add Features button to install these as well.

add feature that required

6- Click next.

select server roles

7- You can install any additional features at this stage, click next on the Select features window.

server roles select features

8- Web Server Role (IIS) window, click next

web server role iis

9- Install web server IIS, role services option you can install additional services for IIS if required. Click Next.

server roles services

10- Confirm installation selections, review the summary, and then click the Install button when you are ready to proceed with installing the IIS web server.

confirm installation selection

12- No reboot should be required, however, if you remove the role a reboot will be needed.

confirm installation selection results

13- Open the path in C drive (C:\inetpub\wwwroot) in notepad, rename it (this is Amazon Web Server), and then save it.

windows explorer

14- Select your Web Server Instance, under description copy public IP Address.

aws instance running

15- Paste in web browsers.

browser

Jamil Parvez

Jamil Pervez works as a Network Administrator, based in Kuwait with a Primary focus on Microsoft technologies. Microsoft Certified MCSE, MCTP, MCITP, CCNP, CCIP, CCVP with 20 years of experience in administering Windows Servers, Exchange, VMWare, Veeam B&R, Veritas BackupExec.

Related Articles

Leave a Reply

Back to top button