Farrukh Fida
Farrukh Fida
  • 8
  • 1 341
Clone and Deploy Laravel on AWS EC2: Complete Setup with nginx, php-fpm, and RDS
Timelines:
00:00 - Introduction.
00:17 - Laravel Application overview on local machine.
01:04 - Steps to take local application to EC2 with AWS RDS.
01:31 - Bash script or commands (find the document link in description).
01:46 - Creating EC2 instance.
03:47 - Accessing EC2 instance.
05:42 - Why we need two users in ubuntu (security point of view).
06:52 - Updating Ubuntu and create users.
12:54 - Installing Nginx and php-fpm.
14:42 - Update Nginx and php-fpm to run as deployer user (instead of www-data).
16:54 - Installing Composer.
17:49 - Configuring Nginx.
23:07 - Cloning the Laravel repository.
24:32 - Create phpinfo(); to test php and nginx.
25:47 - Downgrade php cli to php8.2
27:15 - Copying .env from local system to EC2 for Laravel.
28:32 - Restoring MySQL from RDS snapshot.
29:41 - Verifying and giving access rights to users (team-members) for devops and deployer.
35:05 - Change the database host, and credentials in laravel .env and verify the database.
38:15 - Composer install (required for configuring Laravel application) and php artisan config:clear.
38:32 - Browse Laravel application hosted on EC2.
39:07 - Conclusion
Learn how to securely clone and deploy your Laravel project on AWS EC2 with a fully configured nginx, php-fpm, and RDS setup. In this step-by-step tutorial, we’ll walk you through setting up two dedicated users (devops and deployer), configuring nginx and php-fpm for Laravel, and connecting to a MySQL RDS instance. Perfect for developers and DevOps beginners looking to master AWS deployment best practices!"
🔑 What You'll Learn:
1️⃣ Setting up EC2 with two users for security and control.
2️⃣ Configuring nginx and php-fpm for Laravel.
3️⃣ Connecting Laravel to MySQL RDS.
4️⃣ Testing your setup for optimal performance.
🔗 Useful Links:
Repo: github.com/k8snative/laravelblogapp
Script and Commands: (docs.google.com/document/d/1MPMu9FB-tF5uXeDpz3YHOHzDmjjh7Uk5CUdIQhSXN_A/edit?usp=sharing)
Previous Video on MySQL RDS Setup: (ua-cam.com/video/-7G0hAn72nw/v-deo.html)
👋 Don’t forget to like, share, and subscribe for more DevOps tutorials!
#awsrds
#laravel #devops #ec2 #rds #nginx #php #php-fpm #clouddeployment #mysql #awsrds #aws #awstutorial #awstutorialforbeginners #ubuntu #ubuntutraining #ubuntututorial #ubuntulinux #devopstutorial #ubuntulinux #ubuntuserver
Переглядів: 131

Відео

Beginner’s Guide: Moving Your MySQL Database to AWS RDS Step-by-Step
Переглядів 10314 днів тому
Timelines: 00:00 - Introduction. 00:14 - How MySQL database is used by my existing Application. 00:25 - Steps to take local database to AWS RDS. 01:39 - Taking MySQL dump of local MySQL. 02:20 - Creating RDS Database instance. 04:17 - Setting up RDS Database credentials in application. 05:02 - Allow public accessibility and port 3306 accessibility. 06:42 - Verify the RDS database accessibility....
Automate Laravel Deployments with AWS CodePipeline and ECS Fargate
Переглядів 20514 днів тому
Timelines: 00:00:00 - Introduction. 00:00:19 - Recapping previous videos. 00:00:42 - Overview of AWS CodePipeline. 00:01:27 - Laravel application overview. 00:02:27 - Creation of CI/CD pipeline (AWS CodePipeline). 00:05:17 - Connecting CodePipeline source stage to GitHub. 00:06:54 - Creating AWS CodeBuild project. 00:09:53 - Explanation of buildspec.yml (for CodeBuild). 00:17:03 - Completion of...
Deploy Laravel Docker Container on AWS ECS: Complete Step-by-Step Guide
Переглядів 3904 місяці тому
Timelines: 00:00 - Introduction. 00:28 - Laravel containerize application functionality. 00:42 - Laravel application docker architecture. 03:06 - Create RDS MySQL in AWS. 10:24 - Configuring RDS in Docker container (in Laravel .env). 11:54 - Create Docker image for AWS ECR (Elastic Container Registry). 14:46 - Creating AWS ECR (Elastic Container Registry). 16:45 - Creating AWS IAM user's Secret...
How to Containerize a Laravel App with Docker: Step-by-Step Tutorial for Beginners
Переглядів 3604 місяці тому
Timelines: 00:00 - Introduction. 00:09 - Laravel application functionality. 01:08 - Laravel application configuration on host (non-dockerize). 07:21 - Understanding the required component (Dockerfile & docker-compose.yml) to containerizing Laravel application. 08:23 - Writing the Dockerfile (in complete detail). 23:55 - Writing the docker-compose.yml (in complete detail). 37:50 - Building the L...
Jenkins CI/CD pipeline: Deploying Nodejs application on server using Slave Node
Переглядів 609 місяців тому
Timelines: 00:00 - Introduction 00:31 - Install 'pipeline' plugin 00:56 - Overview 01:20 - Creating new branch 'develop' 01:57 - Cloning the repository 02:35 - Checkout to 'develop' branch 03:06 - Understanding the groovy code and modifying Jenkinsfile 08:15 - Creating deployment directory and copying script file in that directory 09:39 - Understanding the 'deployment_script.sh' bash script 12:...
Setting Up Jenkins: Installing Plugins, Connecting with GitHub, and jenkins slave node configuration
Переглядів 739 місяців тому
Timelines: 00:00 - Introduction 00:44 - Setup Jenkins Security 02:55 - Install Jenkins Plugins 05:01 - Setup Multi Branch pipeline & Git (Github) 16:35 - Adding a Salve node to Jenkins This video is the 2nd part of our devops project in which we will deploy a NodeJS application to our server using Jenkins slave node. Repos: github.com/k8snative/jenkins github.com/k8snative/nodejs101.git #DevOps...
Run Jenkins in Docker container
Переглядів 4210 місяців тому
This video is the first part of our DevOps project in which we deploy a NodeJS application to our server using Jenkins slave node. jenkins docker Repo: github.com/k8snative/jenkins #DevOps #Jenkins #Docker #Containerization #ContinuousIntegration #ContinuousDelivery #NodeJS #Automation #Deployment #CI/CD #SoftwareDevelopment #ServerManagement #InfrastructureAsCode #DevOpsTools #ContainerOrchest...

КОМЕНТАРІ

  • @muhammadmasood5987
    @muhammadmasood5987 16 днів тому

    Nice Farrukh. Keep it up. Customer Success :)

  • @farrukhfida212
    @farrukhfida212 18 днів тому

    🌟 Level Up Your Skills! Now that you’ve mastered containerizing a Laravel app with Docker, take it to the next level! Learn how to deploy your Docker container to AWS ECS in this comprehensive guide: ua-cam.com/video/59xXsflFcOQ/v-deo.html 🚀 Let me know how it goes! 👇

  • @farrukhfida212
    @farrukhfida212 18 днів тому

    🚀 Ready for the Next Step? If you loved this guide on running Laravel in an ECS container, you don’t want to miss the next part! Learn how to automate deployments like a pro using AWS CodePipeline (CI/CD pipeline) and ECS Fargate. Watch it here: ua-cam.com/video/8GOMyclXfIk/v-deo.html 🎯

  • @majidaziz428
    @majidaziz428 4 місяці тому

    Very nicee it helps me alot❤

  • @abdulmujeeb7552
    @abdulmujeeb7552 4 місяці тому

    Good work keep it up

  • @lakalakayoyo
    @lakalakayoyo 4 місяці тому

    Nice explanation - deeply explained 👍

  • @sadafmumtaz623
    @sadafmumtaz623 9 місяців тому

    Really helped me to deploy to server continuously

    • @farrukhfida212
      @farrukhfida212 9 місяців тому

      Thanks for appreciation, really glad it helped you out.