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
- upload_max_filesize = 300M
- 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)
Don't forget to attach a static IP
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.