Wednesday, June 24, 2026

Steps for Website migration Local to AWS Server using FileZilla

What you need first

From your AWS EC2 instance:

  • Public IP / Public DNS on AWS
  • Key Pair (.pem file or .ppk file)
  • Ubuntu username (usually ubuntu)

STEP 1: Convert .pem to .ppk (for FileZilla) if you have .pem file

FileZilla uses .ppk format, not .pem.

  1. Open PuTTYgen
  2. Click Load → Select your .pem file
  3. Click Save private key
  4. Save it as: my-key.ppk

STEP 2: Open FileZilla & Go to Site Manager

  1. Open FileZilla
  2. Click:
    File → Site Manager → New Site


STEP 3: Configure Your AWS Connection on FileZilla

Enter following details:

Protocol: SFTP — SSH File Transfer Protocol
Host: Your AWS Public IP
Port: 22
Logon Type: Key file
User: ubuntu
Key File: (browse and select .ppk file)


STEP 4: Connected View

After successful connection:

  • Left side → Your local PC
  • Right side → Your AWS Ubuntu server

FileZilla Connected View


STEP 5: Upload Your Website

Two common locations to upload:

Option A: Apache (default)

Upload files to: /var/www/html

Option B: Nginx

Upload files to: /usr/share/nginx/html


Method:

Drag your website folder from left side to right side.

Drag → my-website-folder
To → /var/www/html


STEP 6: Fix Folder Permissions

If you get permission errors, run this on your linux server:

sudo chown -R ubuntu:www-data /var/www/html
sudo chmod -R 755 /var/www/html


STEP 7: Open Your Website

In browser:

http://YOUR_PUBLIC_IP




No comments:

Post a Comment

IT CAREER ROADMAP

From IT Support to Leadership – Grow Your Skills, Build Your Future The 7 Stages of Growth 1. L1 Help Desk Support Experience: 0 – 1 Years ...