Deploy Laravel on EC2 with Nginx - Step by Step Guide For Absolute Beginners
HTML-код
- Опубликовано: 9 фев 2025
- If you have been trying to find a resource that teaches you step-by-step how to deploy and configure an NGINX server on an AWS EC2 instance running a Laravel backend, then this video is for you.
Server configuration script: github.com/eko...
Timestamps:
01:06 - Architecture breakdown
04:05 - Setting up Laravel project with Laravel Herd
8:08 - Creating Github repository
12:54 - Brief introduction to AWS
15:41 - Deploying a new server on AWS (EC2 t2.micro)
37:06 - Connecting to instance, Installing PHP, Composer & Nginx
49:47 - Cloning and setting up Laravel project on EC2 server
55:33 - Permissions for storage and bootstrap folders
59:54 - Installing Laravel project dependencies
1:00:39 - Configuring Nginx, explanation of directives and config options
1:25:50 - Additional configuration for PHP-FPM
1:28:07 - Final results
Connect with me:
LinkedIn: / gilbert-blankson-afful...
Website: gilbertblankso...
Thank you very much. This is exactly the kind of video i was looking for. Please keep making videos like this
thanks pro, I was looking for a video like this. keep making content like this.
Glad you like this video. Definitely more coming
mine its showing that 502 bad gateway
nginx/1.26.2
😭
My laravel.log file isn't creating in the storage/logs/ folder, any idea why?
Can you try manually triggering an exception to see if it gets created?
Also teach how to install and connect to mysql database
Connecting to the mysql db from EC2?
@gbafful yes
👍 Alright
I got that in my backlog 😃