How To Install LAMP and PHPMyAdmin on AWS EC2

Subscribers:
3,570
Published on ● Video Link: https://www.youtube.com/watch?v=ESlStCcFLOk



Category:
Tutorial
Duration: 12:38
1,260 views
20


Lets install PHP,MYSQL and PHPMyAdmin on our EC2 Instance!!!!!!!!!
We are gearing up for some great learning tutorials to become at least mediocre Web Devs who can create a form and put it in a database.

If you are wanting to learn and wanting to get started down a great career path start here!

Commands used in Video(in order):
sudo yum update -y
sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
sudo yum install -y httpd mariadb-server
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl is-enabled httpd
sudo usermod -a -G apache ec2-user
exit
groups
sudo chown -R ec2-user:apache /var/www
sudo chmod 2775 /var/www && find /var/www -type d -exec sudo chmod 2775 {} \;
find /var/www -type f -exec sudo chmod 0664 {} \;

sudo systemctl start mariadb
sudo mysql_secure_installation
sudo systemctl stop mariadb
sudo systemctl enable mariadb

sudo yum install php-mbstring -y
sudo systemctl restart httpd
sudo systemctl restart php-fpm
wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz
mkdir phpMyAdmin && tar -xvzf phpMyAdmin-latest-all-languages.tar.gz -C phpMyAdmin --strip-components 1
rm phpMyAdmin-latest-all-languages.tar.gz

#AWS #Learn2Code #PHP







Tags:
amazon web services
amazon web services tutorial for beginners
amazon web services explained
aws
php
mysql
phpmyadmin
ec2
lamp
aws server
php7
ubuntu16.04
ubuntu
How to install
How to Install PHP
How to Install PHPMyAdmin
How to Install MySQL
Linux AMI
Linux AMI2
Amazon AMI2