This README documents the process of setting up a secure Ubuntu server on AWS, configuring an Apache2 web server, and deploying the RentDirect project — a simple, static web-based platform that connects tenants and landlords directly.
- AWS EC2 (Ubuntu 20.04 LTS)
- Apache2
- HTML, CSS, JavaScript**
- SSH
- Ubuntu Terminal
Log in to AWS Management Console Navigate to EC2 → Instances. Click Launch Instance" and choose:
- Ubuntu Server 20.04 LTS
- t2.micro (free tier) Create an SSH key-pair stored in the .ssh directory on my local machcine Open port 22 (SSH) and port 80 (HTTP) in the security group. Launch and wait for the instance to initialize.
chmod 400 your-key.pem ssh -i "your-key.pem" ubuntu@my-ec2-public-ip
sudo apt update && sudo apt upgrade -y sudo apt install apache2 -y
systemctl status apache2
Achieved this by clearing the default Apache index page; sudo rm /var/www/html/index.html
sudo chmod -R 755 /var/www/html/
systemctl restart Apache2
Visited my public IP address where my project is hosted. http://18.203.233.196
