Create WordPress Multi-Site on AWS LightSail (part 2)

Configure WordPress Multi-Site

  • ssh into your running WordPress instance
  • cd /opt/bitnami/app/wordpress
  • sudo ./bnconfig -machine_hostname yoursite.com

Disable the bnconfig tool to stop it resetting the machine hostname
to it’s ip address every time it restarts

  • sudo mv bnconfig bnconfig.disabled

Add a WordPress Site as a sub-Domain

  • login to the WordPress console
  • My Sites -> Network Admin -> Sites
  • Add New
  • enter subdomain – e.g. subdomain

This now provides a site address (url) of subdomain.yoursite.com

  • add Site Title
  • select Language
  • add Admin Email
  • click Add Site

Create an A Record for the sub-domain

  • open DNS record for yoursite.com
  • add Record
    • A Record
    • enter subdomain as above – e.g. subdomain
    • click inside the Resolves To box
    • select the WordPress static-ip address
  • click green tick to save changes

You can now access your subdomain site through http://subdomain.yourdomain.com

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.