Skip to content

Bitnami SSL install tool issue with Wordpress multisite

0

Hi all, I am using the Bitnami wordpress multisite package on my new lightsail instance hoping to host multiple wordpress websites on one instance, I first set the primary domain for the multisite instance as primarydomain.com using: sudo /opt/bitnami/configure_app_domain --domain primarydomain.com (according to the doc this is a must), I then installed SSL for primarydomain.com using sudo /opt/bitnami/bncert-tool, everything worked fine so far since there is only 1 site at this time.

Then I created a 2nd site secondarydomain1.com, but after I install SSL for it using the same command sudo /opt/bitnami/bncert-tool, I found the primary domain of the multisite instance is automatically changed from primarydomain.com to secondarydomain1.com in /opt/bitnami/apache/conf/httpd.conf file:

removed: primarydomain.com

inserted: secondarydomain1.com:80

This caused both domain primarydomain.com and secondarydomain1.com not working properly.. Has anyone seen this issue before? or any idea what went wrong and how to fix it? Thank you!

asked a year ago249 views
2 Answers
0

bn-cert will foul up the server configuration so bad it will have to be restored -- it happened to me! Make sure you have a good snapshot to go back to before running it.

answered 8 months ago
-1

The issue you're experiencing is related to how the Bitnami SSL installation tool interacts with WordPress Multisite configurations on Lightsail. When you use the bncert-tool to install SSL for additional domains in a WordPress Multisite setup, it can inadvertently modify the primary domain configuration.

To resolve this issue and properly manage SSL for multiple domains in your WordPress Multisite instance, you should follow these steps:

  1. First, revert the changes made by the SSL tool by manually editing the /opt/bitnami/apache/conf/httpd.conf file to restore primarydomain.com as the primary domain.

  2. Instead of using the bncert-tool for each additional domain, you should configure SSL for all your domains at once. Use the bncert-tool with multiple domain names separated by spaces:

sudo /opt/bitnami/bncert-tool --domains "primarydomain.com secondarydomain1.com"

This approach will configure SSL for all specified domains without altering the primary domain setting.

  1. After configuring SSL, you may need to update your WordPress Multisite configuration to recognize the additional domains. This typically involves editing the WordPress configuration file and updating DNS records.

  2. Remember to update your DNS records for each domain to point to your Lightsail instance's IP address.

  3. If you add more domains in the future, you'll need to run the bncert-tool command again with all domains included.

By following these steps, you should be able to maintain the correct primary domain configuration while still securing all your WordPress Multisite domains with SSL certificates. If you continue to experience issues, you may need to consult Bitnami's documentation or reach out to AWS Lightsail support for further assistance.

Sources
Define the primary domain for your WordPress Multisite instance on Lightsail - Amazon Lightsail
Troubleshooting WordPress setup failures in Lightsail - Amazon Lightsail
Set up WordPress Multisite on Lightsail - Amazon Lightsail
Manage multiple WordPress sites with Multisite on Lightsail - Amazon Lightsail

answered a year ago
  • This did not work for me, in that the options (if you have already enabled this for a domain before adding another) are y/N to revoke the domain certificate. If you say "N" it tells you the domain list is invalid. When I tried "y" eventually it said I did not have permissions to revoke the certificate

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.