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
