Hello guys, I am Nam and this is my personal blog about my work, my life. Outside of work, I do something about UI, UX, DevOps, mobile...
Hello guys, today i'll show you how to deploy Laravel project to Amazon EC2
Clone from github repository
(Optional) Copy source from local using scp
Install zip, unzip from local machine
Compress source files using zip command:
Copy source from local to EC2 instance using scp command:
Extract source files using unzip command:
Connect to RDS instance from EC2 via mysql client by following command and type your password
Check that package PHP-FPM is exist
Then you find this line and check that path is correct (file .sock must exists in the folder /var/run/php/)
Restart the service
We allow SSH, ICMP and TCP from anywhere and in Outbound we allow anything
Route the traffic to the internet gateway (igw)
Create database for our application
Choose your DB instance type
Check the option connection to the EC2 instance