Practical 6 1
Practical 6 1
Lakhani
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
AIM- AWS-EC2
Submitted by : Dhruv.S.Lakhani
Enrollment number : 20012011055
Department of Computer
Engineering/Information Technology
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
Practical-6
AIM- Amazon EC2 Configuration.
Step-2: Click on Services section under which all the services are listed provided by the AWS.
Since we want to use the EC2 service we will click on it.
1|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
Step-5: Then choose an Amazon Machine Image (AMI) page that displays a list of basic
configurations, called Amazon Machine Images(AMIs), that serve as templates for your
instance. Select an HVM version of Amazon Linux 2.
2|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
Step-6: Now we can select the hardware configuration of your instance. Select the
t2.micro instance type
Step-7: Now we select a key pair. We can create a new key pair. But here we have already
created one so we choose the existing key pair.
3|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
Step-8: Under Security Groups, you'll see that the wizard created and selected a security
group for us.
Here we will create two more security groups
4|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
Step-11: A confirmation page lets you know that your instance is launching. Choose View
Instances to close the confirmation page and return to the console.
5|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
Step-12: Now go to your instances and click on the instance ID you want to connect to.
Step-14: We will go with the default username. And then click on connect.
6|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
7|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
Step-18: Installing all necessary php library and php mysql driver :
- sudo apt install php libapache2-mod-php php-mysql
Step-19: Now we will make the priority of index.php page by editing in swapping index.html
and index.php:
- Nano /etc/apache2/mods-enabled/dir.conf
Step-20: Now we will create a file in which all the detail of database connection is
written:
8|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
- cd /var/www
- mkdir inc
9|Page
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
11 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
AWS Documentation
Windows Installation guide
1. Sign in to the AWS Management Console: Go to the AWS Management Console and sign in
with your AWS account credentials.
2. Choose EC2 from the services menu: Once you're signed in, select "EC2" from the services
menu to go to the EC2 dashboard.
12 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
3. Launch an instance: Select “Instance” from the side navbar and Click the "Launch Instance"
button to start the process of launching a new instance.
4. Choose AMI: In the "Choose an Amazon Machine Image (AMI)" page, select the Windows
Server AMI that you want to use for your instance. You can select an AMI based on the version
of Windows Server that you want to use, the region where you want to launch your instance, and
other criteria.
13 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
5. Choose instance type: Select the instance type that meets your needs. You can choose from a
variety of instance types based on factors like the amount of CPU, memory, and storage capacity
you need.
14 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
6. Create or choose key pair: If you haven't already created a key pair, you'll need to do so now.
This is used to securely log in to your instance over SSH. Alternatively, you can choose an
existing key pair. Generate a Key pair which will provides a secure way to connect to your
instance over SSH, and it ensures that only authorized users can access your instance.
7. Configure security group: Configure the security group for your instance. This is where you
define the inbound and outbound traffic rules for your instance.
8. Add storage: Add storage volumes to your instance as needed. You can choose from different
types of storage options, including Amazon Elastic Block Store (EBS) volumes and instance
store volumes.
15 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
9. Summary: Summarize the details of your instance, make any necessary changes, and then
click "Launch instance" to start the process of launching your instance.
10. Launch instance: Finally, click "Launch Instances" to launch your Windows instance. You
can monitor the progress of the launch process on the "Instances" page of the EC2 console.
16 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
17 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
1. Wait till the instance state is shows a “Running” status along with status check to “2/2 checks
passed”.
When you see a "2/2 checks passed" status for an instance, it means that both system status
checks and instance status checks have passed successfully. This indicates that your instance is
fully operational and ready to use.
18 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
2. Click on Connect which will take you to the Connect instance page after which select RDP
client
3. Save the Password and Download remote desktop file and open it. Click on connect.
19 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
20 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
21 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
22 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
23 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
5. Copy your project file and paste onto the htdocs folder.
24 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
6. Swap the name dashboard with the name you have given your project with.
25 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
26 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
27 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
Once done it will show import has been successfully finished and will show rows.
28 | P a g e
20012011055 CEIT: D-AB14 Dhruv.S.Lakhani
-------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------
12. Open new tab and write, “localhost/dashboard” and try it with on other device with the public
IP Address.
29 | P a g e