lab2
lab2
Objective: Launch an EC2 instance, configure it as a web server, and host a website.
Step 1: Launch an EC2 instance
Start -> AWS console -> EC2 -> Create an Instance -> Launch Instance -> Name -> Select Free
Tier AMI -> Select Free Tier Instance Type - > Set KeyPair Name -> Mark all Networking
Protocols (SSH, HTTPS, HTTP) -> Launch Instance.
Step 2: Connect to the EC2 Instance and host Website
Click on Connect -> Select EC2 Instance Connect -> Click on Connect
(Before that visit to free css website, click on any template and copy the .zip link of that
particular template)
Step 3: Commands to Write on the terminal for creating the connection
sudo su –
yum update -y
yum install -y httpd
systemctl status httpd
mkdir temp
cd temp
wget copy the .zip link
ls -lrt
unzip name of zip file
ls -lrt
cd to another folder other than .zip
to connect server into webserver
mv * /var/www/html/
cd /var/www/html/
systemctl enable httpd
systemctl start httpd