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

Channel Avatar
Comment
X
Share
Deploying a PHP web app on AWS EC2 with Apache, MySQL, and SSL certificate
Deploying a PHP web app on AWS EC2 with Apache, MySQL, and SSL certificate
If you find this video helpful, you can buy me a coffee here: https://buymeacoffee.com/unconv (I really need coffee)

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.

How I built the app: https://www.youtube.com/watch?vZHn1wkeTbhY

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

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *