AWS / 3 MIN READ
How to create a WP site with AWS
How to create a WP site with AWS
From the original Fervor library. Examples may use older package versions.
🚀 WordPress on AWS: The Simple Tutorial
🍔 What You’ll Need:
- An AWS account
- Some basic knowledge of AWS services (don’t worry, I’ll explain as we go)
- About 30–60 minutes of time and a cup of coffee ☕
🧱 Step 1: Launch a Virtual Server (EC2)
- Log in to your AWS Console.
- Go to EC2 → Click on Launch Instance.
- Choose an Amazon Machine Image (AMI):
- Pick WordPress by Bitnami (super easy setup, pre-configured).
- Choose an instance type:
- Use t2.micro if you’re eligible for the free tier.
- Configure your instance:
- Default settings are okay for now.
- Add storage (optional):
- 10–20 GB should be fine for starters.
- Configure security group:
- Allow HTTP (80), HTTPS (443), and SSH (22).
- Launch and create a new key pair:
- Save the .pem file! You’ll need it to access your server.
🌐 Step 2: Get Your WordPress Site Online
- Go to the EC2 Dashboard.
- Copy the Public IPv4 address of your instance.
- Paste it in your browser → 🎉 WordPress site should be live!
🔐 Step 3: Get Your Login Details
- Connect to your instance using SSH:
ssh -i /path/to/your-key.pem bitnami@your-public-ip - Once inside, run this to find your WP password:
cat bitnami_application_password - Log in to WordPress:
- Visit
http://your-public-ip/wp-admin - Username:
user - Password: (from the previous step)
- Visit
🧰 Step 4: Make It Yours (Optional But Awesome)
- Add a domain: Use Route 53 or your preferred registrar to point a domain to your EC2 instance.
- Install SSL: Use Let’s Encrypt via Bitnami’s built-in tool.
- Set up backups: Use Amazon S3 + a WordPress plugin like UpdraftPlus.
🛡️ Bonus Tips for Security & Speed
- Change the default
wp-adminURL using a plugin like WPS Hide Login. - Use CloudFront (CDN) to speed up your site.
- Enable automatic updates and install a firewall plugin like Wordfence.
🌟 Bonus: Pointing a Domain to Your WordPress Site on AWS (EC2)
🧭 What You Need:
- A domain name (from Namecheap, GoDaddy, Google Domains, etc.)
- Your EC2 instance’s public IP
- Optional but recommended: AWS Route 53 (for DNS management)
🔁 Option 1: Use Your Domain Registrar’s DNS
-
Log in to your domain registrar (e.g., Namecheap, GoDaddy).
-
Go to your domain’s DNS settings.
-
Add an A record:
- Host:
@(means the root domain, likeyourdomain.com) - Points to: Your EC2 public IPv4 address
- TTL: Leave default or set to 30 minutes
- Host:
-
Optionally, add a second A record for
www:- Host:
www - Points to: Same EC2 IP
- Host:
🔁 Wait 5–30 minutes for the changes to propagate (sometimes longer).
🧭 Option 2: Use AWS Route 53 (If You Want Full AWS Control)
-
Go to Route 53 in AWS → Click Hosted Zones → Create Hosted Zone
-
Enter your domain name → Choose Public Hosted Zone
-
Once created, Route 53 will show NS records (nameservers)
-
Go back to your domain registrar and replace their nameservers with the ones from Route 53
-
In Route 53, create an A record:
- Name: Leave empty or enter
wwwif you want to point that too - Type: A – IPv4
- Value: Your EC2 public IP
- Name: Leave empty or enter
✅ Now AWS is your DNS manager!
🔐 Bonus Round: Add SSL with Let’s Encrypt (Free HTTPS)
- SSH into your EC2 instance.
- Run Bitnami’s SSL tool:
sudo /opt/bitnami/bncert-tool - Enter your domain when prompted (e.g.,
yourdomain.com,www.yourdomain.com) - It’ll install SSL and set up automatic renewals for you.
💡 Final Check
- Visit
http://yourdomain.com→ Should load your WordPress site! - Try
https://yourdomain.comafter SSL setup → 🔒 Secure!
Keep your curiosity going.Explore more AWS →