Want to switch WordPress hosting providers? Amazon Lightsail makes it easy to host a WordPress website on AWS.
Please choose from our monthly pricing plans starting at USD 3.50 and enjoy full control of your WordPress installation, including plugins, theme, and more.
It only takes a couple of minutes to create a Lightsail WordPress installation. This tutorial will show you how to back up your WordPress blog and then import it into a Lightsail instance.
Here is a brief overview of the entire process:
Let’s get started!
You’ll also need:
- AWS is required. Register for AWS or Log in to AWS If you already have an account.
- Check that your account is configured to work with Lightsail. You may need to update your account if it’s been some time since you set up your account or if you don’t have a credit card.
Step 1: Backup your WordPress blog
WordPress can be used to back up your blog. To manage your blog, you’ll need to be able to log in to the WordPress admin console.
- Manage your blog by clicking on the Manage link.
- You can sign in by clicking on the Sign In link if the Manage banner does not appear. http:// /wp-login.php . Replace: You can find the public IP of your instance by entering it in the search bar.
- Log in to the WordPress admin console using your username and password.
- Choose Tools from the WordPress Dashboard and then select Export.
- Select All Content on the Export page to export all of your content as an XML file.
- Click Download Export File to download your blog in XML format.
- You should save the XML in a place that is easy to locate. It’s needed in Step 4.
Step 2: Create an instance of WordPress in Lightsail
In just a few moments, you can create a brand new WordPress instance using Lightsail. Here’s how:
- Log in to the Lightsail homepage.
- Select Create an instance.
- Choose the AWS Region in which you would like to create your blog.
- Once you have selected an AWS Region, you can change the default availability zone or choose a different one.
- WordPress is set as the default application for this page. Double-check to make sure WordPress is selected.
- Select your instance plan or bundle.
- You can upgrade your Lightsail plan later if needed. Here’s how.
- Enter the name of your instance.
- Resource names
- Each AWS region in your Lightsail Account must be unique.
- The characters must be between 2 and 255.
- The beginning and ending of the sentence must be an alphanumeric number or character.
- Include alphanumeric, numeric, period, dashes, and underscores.
- Select one of the options below to add tags to an instance.
- Add key-only Tags or Edit key-only tags (if tags have already been added). Enter the new title in the text box for tag keys. When you are done adding tags, choose Save to save them or Cancel to remove them.
- img Alt=”Key-only Tags in the Lightsail Console.” src=”https://d9yljz1nd5001.cloudfront.net/en_us/662de23b8fca4b7c66c1554173c09d8e/images/amazon-lightsail-key-only-tags.png”/>
- Enter a key in the Key text field and a value in the Value text field to create a key-value tag. When you are finished entering tags, click Save or Cancel.
- Before saving, you can only add one key-value tag. Repeat the steps to add more than one tag.
- img Alt=”Key-value Tags in the Lightsail Console.” src=”https://d9yljz1nd5001.cloudfront.net/en_us/662de23b8fca4b7c66c1554173c09d8e/images/amazon-lightsail-key-value-tag.png”/>
- To learn more about key-only tags and key-value tags, visit Tags on Amazon Lightsail.
- Select Create an instance.
Log in to your Lightsail WordPress Blog
You’ll now need to log into the WordPress Dashboard in order to import all of your blog data.
- Find your WordPress blog on the Lightsail homepage.
- Copy the Public IP Address to the clipboard. This address can be found on the Lightsail homepage or the instance detail page.
- Enter the IP address in your browser and add the /wplogin.php to the end. For example, 192.0.2.1/wp-login.php. This is what you should see:
- Use the default username (user).
- Connect to your instance to get the password.
- Use the terminal icon located next to your Lightsail installation to connect.
- Enter the following:
- cat bitnami_application_password
- If you’re in a directory other than the user home directory, then type cat $HOME/bitnami_application_password.
- This is what you should be looking at:
- Select the clipboard icon after selecting your password on the terminal screen.
- Press Ctrl+C (or Cmd+C) to copy text from the clipboard.
- You should save your password somewhere at this time. You can always change it later.
- Enter your password in the WordPress login box and click Log In.
- You’ll be able to see your WordPress Dashboard if you are successful.
Step 4: Import your XML file into your new Lightsail blog
Follow these steps once you’ve successfully logged in to the WordPress Dashboard of your new Lightsail installation.
- Choose Tools from the WordPress Dashboard of your Lightsail instance.
- Select Import and then Install Now to install the WordPress import tool.
- After the tool has been installed, select Run Importer in order to start the import tool.
- Choose Browse on the Import WordPress page.
- Open the XML backup file that you created in Step 1.
- Select Upload file to Import.
- Select Submit after accepting the rest of the defaults.
Select your blog (next to the Home icon) and choose Visit Site in the WordPress dashboard to verify everything worked. You can view the blog by typing the IP address in a browser.
The next steps are:
- You can migrate your DNS to point your domain name servers at the new version of your site.
- Install WordPress plugins to customize your blog’s look and feel.
- Enable HTTPS with SSL certificates.