DEV Community

Cover image for Why We Migrated Our WordPress Site from Hostinger to AWS LightSail
shubham paul
shubham paul

Posted on

Why We Migrated Our WordPress Site from Hostinger to AWS LightSail

For over three years, our company’s WordPress blog was hosted on Hostinger. However, we recently decided to migrate to AWS LightSail to leverage its reliability, scalability, and cost-effectiveness. Although AWS EC2 could also host WordPress, it requires extensive manual configuration, which we opted to avoid at this stage. In this blog, I’ll walk you through how to migrate an existing WordPress site to AWS LightSail or set up a new one, detailing each step for a smooth transition.

Step 1: Create a new AWS account, if you have sign in to AWS console

Step 2: Search LightSail

Step 3: Create the wordpress App

Step 4: Choose your Pricing plan

Step 5: Go to the wordpress console

Step 6: Copy the public IP address and check the site is working or not

Step 7: Now login to wp-admin

username: user
password: For the password go to console / shell run the command
cat bitnami_application_password

Step 8: For migration Install a plugin All-in-One WP Migration. Download your old wordpress site and using this plugin import it you new wordpress site

But you will not able to upload your site run this command
Check file upload limit: php -i |egrep
'upload_max_filesize|post_max_size'

By default it will be 80M

We have to change

Run this command
sudo vi +/upload_max_filesize /opt/bitnami/php/etc/php.ini

Change the two file limit

  1. upload_max_filesize = 300M
  2. post_max_size = 300M

Now let's install the SSL cerificate

Run the command sudo /opt/bitnami/bncert-tool

Configure your domain name and You website is ready

Top comments (2)

Collapse
 
shu12388y profile image
shubham paul

Don't forget to attach a static IP

Collapse
 
waynetyler profile image
WayneTyler

Interesting choice to migrate from Hostinger to AWS LightSail! AWS definitely brings more scalability, especially for handling larger traffic loads, though it can be a bit more complex to configure. For anyone not wanting to go that route, managed hosting options like Cloudways and SiteGround could also be great alternatives, balancing simplicity and control. AWS works wonders once it’s set up, but it’s good to know there are easier options out there for those who want to avoid the more technical setup steps.