AWS Classroom notes 24/Nov/2023

Amazon Machine Image

  • Overview
    Preview

Lets create an AMI for PHP Info

  • Lets create an ubuntu 22.04 ec2 instance
  • install apache, stress and php info
sudo apt update
sudo apt install apache2 stress -y
sudo apt install php libapache2-mod-php php-mysql -y
echo "<?php phpinfo() ?>" > /var/www/html/info.php

Preview
* Lets create an AMI (Snapshot of disk + metadata)
Preview
Preview
Preview
Preview
* Now lets create and ec2 instance using ami
Preview
* Navigate to php info
Preview
Preview

Lets create one more AMI where we install nginx

  • Create an ec2 instance with Redhat 9 linux
  • Install nginx
sudo dnf install nginx
sudo systemctl enable nginx
sudo systemctl start nginx
  • navigate http://<publicip>
  • try running info.php on nginx

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube