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 commandcat 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 commandCheck file upload limit: php -i |egrep
'upload_max_filesize|post_max_size'
By default it will be 80M
We have to change
Run this commandsudo 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
Source link
lol