How to Install Apache, MySQL, PHP on AWS EC2 | Install a web server on your EC2 instance | LAMP
In this video we will check the installation of LAMP stack in an AWS EC2 instance. The following topics are included :
– Launching an EC2 instance
– Updating package list
– Installing Apache
– Installing MySql
– Installing PHP
– Connecting to EC2 instance with an FTP client (FileZilla)
============Linux Command====================
sudo -i
sudo -i passwd
sudo apt update
sudo apt install apache2
sudo apt install mysql-server
sudo service mysql status
sudo service apache2 restart
sudo apt install phpmyadmin
sudo apt install php libapache2-mod-php
sudo systemctl restart apache2.service
php -v
mysql -v
CREATE DATABASE IF NOT EXISTS coding_spider_db;
CREATE USER ‘coding_spider_db_user’@’%’ IDENTIFIED BY ‘123’
GRANT SELECT, INSERT, CREATE, ALTER, DROP, LOCK TABLES, CREATE TEMPORARY TABLES, DELETE, UPDATE, EXECUTE ON coding_spider_db.* TO’coding_spider_db_user’@’%’;
sudo chown -R ubuntu /var/www/html/
sudo find /var/www/html -type d -exec chmod u+rwx {} +
sudo find /var/www/html -type f -exec chmod u+rw {} +
============Linux Command====================
#aws #awstraining #ubuntu #freehosting #freehost #awsinhindi #apache2 #mysql #php #apache2 #lamp
⭐️Time Stamps⭐️
#0 (00:00) Introduction
#1 (02:00) Create and Launch AWS EC2 instance
#2 (05:50) open terminal through AWS EC2 instance connect
#3 (08:50) Install Apache on AWS EC2 Instance Ubuntu
#4 (10:10) Install MySQL Server on AWS EC2 Instance Ubuntu
#5 (11:30) Install PHP on AWS EC2 Instance Ubuntu
#6 (12:55) connect an AWS EC2 instance with FileZilla and do SFTP
#7 (23:30) End of video
by Coding Spider
linux web server