AWS Classroom notes 24/Nov/2023

Amazon Machine Image

  • Overview

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


* Lets create an AMI (Snapshot of disk + metadata)




* Now lets create and ec2 instance using ami

* Navigate to php info

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 comment

Turn on JavaScript to leave a comment.

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

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers
Exit mobile version
%%footer%%