Installation of Wordpress and Discourse same domain same server?

AI-generated summary

DanielDai is seeking help on running both WordPress and Discourse on the same server and domain, with WordPress on the main domain and Discourse on a subdomain. After reinstalling the VPS and following the official Discourse guide, they successfully set up Discourse with HTTPS on forum.example.com. However, they cannot access their WordPress site via the main domain example.com, which currently redirects to Discourse. They also note that WordPress is only accessible via IP:8000 and lacks HTTPS. IAmGav suggests using Apache to host multiple websites, while Stephen references a guide on running other websites alongside Discourse. NamVr is also awaiting a solution.

We are new user of Discourse. We tried to install both of wordpress website at main domain and discourse at forum subdomain by Docker on the same server Ubuntu 18.04; I pointed DNS A record of main domain and another A record of forum subdomain to the server IP.

When I entered example.com on the browser, we came to see the famous 5-minute Wordpress installation page. That is good.

However when type forum.example.com into the browser, it is still the famous 5-minute Wordpress installation page.

Unfotunately we are not able to have the Discourse startup page. Maybe the problem with DNS part?

We are wondering if we also need to install Nginx so as to apply for Let’s Encrypt SSL certificate.

Update:

  1. We reinstalled the VPS server and followed the offical guide on Github. Yes we completed the installation for forum.example.com successfully, so we are able to see the front end of back end (dashboard) of our own Discourse forum. It has HTTPS ssl certificate already.

  2. We also installed Wordpress website for by Docker. We found one problem: we only have access to this Wodpress website via IP:8000 port. This Wordpress website does not have HTTPS ssl certificate.

  3. If we type main domain example.com on the browser and visit it, it will jump to our Discourse forum. Actually we want this main domain for the Wordpress website.

Me to waiting for the reply.

you will have to try do something like this

Refer to this guide: