Host website on AWS (ec2) server for free | Free Hosting | Install PHP/apache on AWS | Fullstack Dev

Опубликовано: 24 Июль 2026
на канале: FULLSTACK DEV
5,995
93

Hello Everyone
In this video we will learn how to host a website on amazon AWS ec2 server for free. EC2 allows us to host multiple for free for one year.

Follow these steps during installation:

(Only For Ubuntu Users change pem file permission and connect to ssh using pem file )
1. sudo chmod 400 path/to/key/file (Only for ubuntu users)
2. sudo ssh -i "path/to/key/file" 3.136.223.124 (Only for ubuntu users)

Windows users need to download and install Putty to connect with ssh, use below link to download:
https://www.chiark.greenend.org.uk/~s...

after successfully connecting with server follow these steps to install LAMP on server (Same for window and Ubuntu users)

1. sudo apt-get update

2. sudo apt-get install apache2

3. sudo apt-get install mysql-server

4. sudo mysql_secure_installation

5. sudo mysql -u root -p

6. sudo apt-get install php libapache2-mod-php php-mysql php-curl php-gd php-json php-zip php-mbstring

7. sudo service apache2 restart

8. sudo apt install phpmyadmin

9. sudo mysql -u root -p

10. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

11. FLUSH PRIVILEGES;
// Change folder permission
sudo chown -R ubuntu /var/www/html
sudo chmod -R 755 /var/www/html

Laravel Rest API Tutorials:    • Laravel Rest API Tutorial | Introduction &...  
Laravel Chat Tutorials :    • Laravel Chat App using Node JS and Web soc...