Multi-site WordPress Server on Amazon AWS Lightsail via Bitnami


Here’s how you can create and manage a Multisite WordPress server on Amazon AWS Lightsail pre-packaged virtual server built by Bitnami;

Create a WordPress Multisite instance in Lightsail.

Create a static IP and attach it to your WordPress Multisite instance in Lightsail.

At your registered domain’s DNS provided by domain registrar, point your website’s A records i.e. @ and www to Amazon static IP address.

Define the primary domain for your WordPress Multisite instance in Amazon Lightsail

sudo /opt/bitnami/configure_app_domain –domain example.com

Now you can browse to your multi-site website and WordPress dashboard by visiting;

https://example.com

To get the Multisite dashboard super user’s username and password

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/log-in-to-your-bitnami-application-running-on-amazon-lightsail

Issue these two commands in the SSH window to get root username and password:

sudo yum update
sudo su

Default Usernames and Passwords

Here are the default usernames for WordPress, including WordPress Multisite by Bitnami;

Application user name: user

Database user name: root

PrestaShop

Application user name: user@example.com

Database user name: root

Django

Application user name: N/A

Database user name: root

Ghost

Application user name: user@example.com

Database user name: root

LAMP stack (PHP 5 and PHP 7)

Application user name: N/A

Database user name: root

Node.js

Application user name: N/A

Database user name: N/A

Joomla

Application user name: user

Database user name: root

Magento

Application user name: user

Database user name: root

MEAN

Application user name: N/A

Database user name: root

Drupal

Application user name: user

Database user name: root

GitLab CE

Application user name: user

Database user name: postgres

Redmine

Application user name: user

Database user name: root

Nginx

Application user name: N/A

Database user name: root

To get the default Bitnami application and database password

Run this command in SSH window on Amazon Lightsail WordPress instance;

cat bitnami_application_password

or if you are in a different directory than user home;

cat $HOME/bitnami_application_password

Now, enter the default Bitnami WordPress username and password in the Dashboard;

https://example.com/wp-admin

Add blogs as domains to your WordPress Multisite instance in Amazon Lightsail

Click My Sites –> Network Admin –> Sites

Choose “Add New” to add a new domain and enter “example” if your new domain is “example.com” in the Site Address (URL). When done, click Add site;

Click “Edit Site” in the next dialog box and in the Site Address URL, enter your correct domain name i.e. EXAMPLE.COM instead of a subdomain displayed by default. When done, click “Save Changes”

Start SSH and enter this command;

sudo vim /opt/bitnami/wordpress/wp-config.php

If this command fails, you might be using an older version of the WordPress Multisite instance. Try running the following command instead.

sudo vim /opt/bitnami/apps/wordpress/htdocs/wp-config.php

Press I to enter insert mode in Vim.

Add the following line of text below the define(‘WP_ALLOW_MULTISITE’, true); line of text.

define(‘COOKIE_DOMAIN’, $_SERVER[‘HTTP_HOST’]);

Press the Esc key to exit insert mode in Vim, then type :wq! and press Enter to save your edits (write) and quit Vim.

Enter the following command to restart the underlying services of the WordPress instance.

sudo /opt/bitnami/ctlscript.sh restart

To learn more about advanced settings in Multisite WordPress Administration, visit;

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s