Deploying a PHP web app on AWS EC2 with Apache, MySQL, and SSL certificate

preview_player
Показать описание

In this video I will show you how you can deploy a PHP web application on an Amazon AWS EC2 instance. I will install Apache, PHP, MySQL and phpMyAdmin on the server. I will also register a custom domain from Amazon and set up a Let's Encrypt SSL certificate for it.

00:00 Intro & App Demo
01:15 Creating EC2 Instance
03:15 SSH into EC2 with SSH key
05:09 Updating the system
05:43 Failing to install packages
07:02 Adding swapfile
07:58 How to brick your server by editing /etc/fstab wrong
09:52 How to make swapfile persistent with /etc/fstab
10:28 Installing packages
11:11 Switching Apache DocumentRoot
12:06 Setting up Elastic IP
14:00 Registering and setting up a domain
17:30 Transferring app files to EC2
19:54 Creating MySQL database
23:04 Testing the app
24:28 Installing an SSL Certificate (Let's Encrypt)
30:43 Where is phpMyAdmin??
32:42 Creating HTTP to HTTPS redirection
36:15 Changing to newly registered domain
40:51 Final words
Рекомендации по теме
Комментарии
Автор

It's really helpful with all the misstakes and how to fix for me that is a complete n00b :)

andreas.lee-norman
Автор

I usually use linode, but seeing all the options for AWS is interesting.

amir
Автор

amazing tutorial a question u need to pay for elastic to point your domain?

eduardodudu
Автор

i am getting a timed out error on the web page after installing apache2, mysql-server, php, and phpmyadmin. Any reason why this is happening?

chatly
Автор

All the mistakes in this video were definitely on purpose just to show how not to do it 🙄

unconv
Автор

bro how to upload bot files in it ?
i dont want website i need telegram bot to host

fraudx