- Selected the us-east-1 region and launched a new EC2 instance of t2.nano family with Ubuntu Server 20.04 LTS (HVM) launch EC2
- Created a key pair
- Created a security group
- Used the existing security group
- Ec2 instance launched successfully
- populated Mobaxterm with ec2 public IP address, username and key pair details to connect to the EC2 instance
- connected successfully into the EC2 instance using Mobaxterm
- Switch from ubuntu user to root user
sudo -i
- start off by updating my server’s package index. Following that, I can use apt install to get Nginx installed:
apt update
apt install nginx
- Verify that Nginx is running
- checking if we can connecting to our server from localhost
- Now it is time for us to test how our Nginx server can respond to requests from the Internet. Open a web browser of your choice and try to access following url. If you see following page, then your web server is now correctly installed and accessible through your firewall.
Now that i have a web server up and running, I installed a Database Management System (DBMS) to be able to store and manage data for my site in a relational database. MySQL is a popular relational database management system used within PHP environments, I used it in our project.
apt install mysql-server
When the installation is finished, log in to the MySQL console by typing:
mysql
To finish
To finish