How to install Wordpress and Discourse together? (Ubuntu)

AI-generated summary

Sir_Reyowski is trying to install Wordpress and Discourse on the same Ubuntu server, with Wordpress at mydomain.com and Discourse at forum.mydomain.com or mydomain.com/forum. However, he’s encountering conflicts using Docker for Discourse and Apache or Nginx for Wordpress.

Sir_Reyowski has tried various methods but hasn’t succeeded, prompting pfaffman to suggest using two separate servers or trying a subfolder setup, and sharing some relevant guides.

Other users, such as ron_jeremy, have found success using separate servers, while Cameron_D suggested using Docker for both Discourse and Wordpress. Grex315 shared a guide that worked for them, using Nginx to run both Wordpress and Discourse on the same server.

Sir_Reyowski has since found a solution that works for him, hosting Wordpress on his web hosting and pointing a subdomain to his VPS.

Hi.

I’m currently using an Ubuntu server and I want to install Wordpress and Discourse, for example:
mydomain. com (Wordpress)
forum.mydomain. com or mydomain. com/forum (Discourse)

I tried some things but failed. Discourse need to be installed with Docker and Wordpress with Apache or Nginx, but there are some conflincts when I’m using both.

I’ve searched and read some topics but none helped me (not my situation or didn’t understood them).

Thanks for your help!

Without knowing what topics you read or you tried, there isn’t much way to know what to tell you. The easiest is to use two separate servers. The hardest is to try the subfolder (example.com/forum).

Did you follow any of these? Use a subfolder (path prefix) to serve Discourse with multiple servers sharing a domain. Run other websites on the same machine as Discourse - #47, Set up Discourse on a server with existing Apache sites

I run 2 separate Droplets on Digital ocean. Works great.

Docker can be used to run applications other than Discourse. There is a preconfigured WordPress docker container here:

That can run alongside Discourse, then you follow the guide for running other websites on the same machine as Discourse and set up nginx on the host to serve the two subdomains (or Traefik in another container if you’re adventurous).

I don’t use Digital Ocean, I have my own server

I run a Wordpress site and a Discourse instance off the same droplet and used this guide. Worked well for me.

https://blog.khophi.co/install-run-discourse-behind-nginx-right-way-first-time/

I don’t rent a VPS at Digital Ocean.

I hosted my WP on my web-hosting and point a subdomain to my VPS.

Thanks for you help