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

Sdílet
Vložit
  • čas přidán 14. 07. 2024
  • If you find this video helpful, you can buy me a coffee here: 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: • I trained a guessing g...
    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
  • Věda a technologie

Komentáře • 11

  • @andreas.lee-norman
    @andreas.lee-norman Před měsícem +1

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

  • @amir78989
    @amir78989 Před 5 měsíci

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

  • @bye835
    @bye835 Před 11 měsíci

    Very helpful. Thanks

  • @time232years9
    @time232years9 Před rokem +2

    bro, video is good

  • @chatly8461
    @chatly8461 Před 5 měsíci

    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?

  • @unconv
    @unconv  Před rokem +4

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