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 (1)

Collapse
 
shu12388y profile image
shubham paul

Don't forget to attach a static IP