Configuring WordPress Multisite in Amazon Lightsail

2 min read 4 months ago
Published on Apr 21, 2024 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

How to Configure WordPress Multisite in Amazon Lightsail

Step 1: Setting Up Prerequisites

  1. Create a WordPress multisite instance in Amazon Lightsail.
  2. Create a static IP and attach it to the instance.
  3. Create a DNS zone with a registered domain pointed to the static IP in Amazon Lightsail.

Step 2: Getting Default Administrator Password

  1. Access the default administrator password for the WordPress multisite dashboard stored in a text file on the instance.
  2. Connect to the instance using SSH, preferably through the browser-based SSH terminal in the Lightsail console.
  3. Use the cat bitNami_application_password command to retrieve the default administrator password.
  4. Copy or cut the password to your local clipboard for later use.

Step 3: Defining Primary Domain

  1. Utilize the Bitnami configuration tool to define the primary domain for the WordPress multisite application.
  2. Navigate to the WordPress application directory using the change directory commands.
  3. Define the primary domain using the machine_hostname command, replacing example.com with your own registered domain.
  4. Disable the Bitnami configuration tool to prevent resetting the machine hostname to its IP address on server restart.

Step 4: Signing into Dashboard

  1. Access the WordPress multisite dashboard by clicking on the Bitnami logo on the bottom right corner of the page.
  2. Choose "Login" and enter the username along with the default administrator password obtained earlier.

Step 5: Adding Sites to Multisite

  1. Configure WordPress multisite to add sites using domains or subdomains.
  2. For subdomains, each site will use a subdomain of the primary domain defined earlier.
  3. To add a new site with a subdomain, go to "My Sites" -> "Network Admin" -> "Sites" -> "Add New Site" and provide necessary details.

Step 6: Adding Address Record to DNS Zone

  1. Open the Lightsail console and navigate to the DNS zone for the domain.
  2. Add an A record for the subdomain of the new site, pointing it to the static IP attached to the WordPress multisite instance.
  3. Once the DNS change propagates, the domain will redirect to the new site on the WordPress multisite instance.

Conclusion

By following these steps, you have successfully configured a WordPress multisite instance in Amazon Lightsail. For more detailed information on any of the steps covered, refer to the articles mentioned in the video. Thank you for watching!