This content originally appeared on DEV Community and was authored by shubham paul
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
This content originally appeared on DEV Community and was authored by shubham paul
shubham paul | Sciencx (2024-10-26T06:36:33+00:00) Why We Migrated Our WordPress Site from Hostinger to AWS LightSail. Retrieved from https://www.scien.cx/2024/10/26/why-we-migrated-our-wordpress-site-from-hostinger-to-aws-lightsail/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.