fervor [>]CODING & CURIOSITY
FERVOR LEARNING SYSTEMTUTORIALS
← AWS

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)

  1. Log in to your AWS Console.
  2. Go to EC2 → Click on Launch Instance.
  3. Choose an Amazon Machine Image (AMI):
    • Pick WordPress by Bitnami (super easy setup, pre-configured).
  4. Choose an instance type:
    • Use t2.micro if you’re eligible for the free tier.
  5. Configure your instance:
    • Default settings are okay for now.
  6. Add storage (optional):
    • 10–20 GB should be fine for starters.
  7. Configure security group:
    • Allow HTTP (80), HTTPS (443), and SSH (22).
  8. 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

  1. Go to the EC2 Dashboard.
  2. Copy the Public IPv4 address of your instance.
  3. Paste it in your browser → 🎉 WordPress site should be live!

🔐 Step 3: Get Your Login Details

  1. Connect to your instance using SSH:
    ssh -i /path/to/your-key.pem bitnami@your-public-ip
    
  2. Once inside, run this to find your WP password:
    cat bitnami_application_password
    
  3. Log in to WordPress:
    • Visit http://your-public-ip/wp-admin
    • Username: user
    • Password: (from the previous step)

🧰 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-admin URL 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

  1. Log in to your domain registrar (e.g., Namecheap, GoDaddy).

  2. Go to your domain’s DNS settings.

  3. Add an A record:

    • Host: @ (means the root domain, like yourdomain.com)
    • Points to: Your EC2 public IPv4 address
    • TTL: Leave default or set to 30 minutes
  4. Optionally, add a second A record for www:

    • Host: www
    • Points to: Same EC2 IP

🔁 Wait 5–30 minutes for the changes to propagate (sometimes longer).


🧭 Option 2: Use AWS Route 53 (If You Want Full AWS Control)

  1. Go to Route 53 in AWS → Click Hosted Zones → Create Hosted Zone

  2. Enter your domain name → Choose Public Hosted Zone

  3. Once created, Route 53 will show NS records (nameservers)

  4. Go back to your domain registrar and replace their nameservers with the ones from Route 53

  5. In Route 53, create an A record:

    • Name: Leave empty or enter www if you want to point that too
    • Type: A – IPv4
    • Value: Your EC2 public IP

✅ Now AWS is your DNS manager!


🔐 Bonus Round: Add SSL with Let’s Encrypt (Free HTTPS)

  1. SSH into your EC2 instance.
  2. Run Bitnami’s SSL tool:
    sudo /opt/bitnami/bncert-tool
    
  3. Enter your domain when prompted (e.g., yourdomain.com, www.yourdomain.com)
  4. 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.com after SSL setup → 🔒 Secure!

Keep your curiosity going.Explore more AWS →
287 TUTORIALS · 22 TOPICSREADY