Install WordPress and Discourse software on single server

Discourse WordPress Same Server
Learn how to install discourse forum software along with WordPress Blog on the same 1GB RAM LAMP server using Swap file and mod_proxy apache.

Hello, I hope you are doing great today. From long time I was thinking to write this article on How I had installed WordPress and Discourse on the same server.

If you are on this page then you might have an idea about both the software; Discourse and WordPress. Hence, let’s get started with our installation guide. But before that we need some pre-requisites to be completed and we will be using DigitalOcean Cloud server for this guide.

Note: Read entire guide first and then execute on your server. 

If you completed the pre-requisite, then you are good to go ahead with the tutorial. Next, you need to install and setup the Discourse on DigitalOcean server. Follow this tutorial:

How To Install Discourse on Ubuntu 14.04

Few things to note while following installation guide.

  • If you have 2 GB RAM, you can skip adding Swap file (Step Two) as Discourse can work good enough with 2GB RAM else adding Swap file with 1GB RAM is necessary.
  • At Step Five (Configure Discourse); After you open app.yml in the editor, look for expose settings and change port “85:85” to “85:80“. This will assign a different port number (Port 80) for Discourse software and WordPress will use default port 85. Finally, expose setting should look something like this:
Related:  Disable Month and Year upload folder for WordPress

  • Continue with further changes to be done in app.yml file and progress with Discourse installation.
  • Stop at Step Seven (Access Discourse); we have just assigned Discourse with a port, but we have not configured with our DigitalOcean Apache setting to listen to this port number.

Follow these steps for Apache configuration:

  1. Install mod_proxy and mod_proxy_http using following commands for reverse proxy settings.
  2. Enable both the apache modules using below command.
  3. Create a Virtual Host Apache configuration file for implementing mod_proxy and mod_proxy_http. Name the file as www.example.com.conf and add this below text with the change in ServerName and ServerAlias.
  4. Reload and restart Apache server.
  • Once you have completed with Apache settings, your Discourse and WordPress are good to go. Now access your Discourse forum through web link and complete further settings which you have stopped at Step Seven.

Note and Conclusion:

You may also like...

Leave a Reply

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