use vanilla theme
Can I Install NodeBB in subfolder in Wordpress?
I want to install NBB in a subfolder on the same WP server. I intend on using WP as the Auth Provider, I also intend on using NBB for comments.
- Ubuntu 18.04, 2 GB Memory / 50 GB Disk WordPress: 5.2.2, Apache: 2.4.29, MySQL server: 5.7.23, PHP: 7.2 , SSL, WP OAuth Server plugin.
- Does anyone have the experience, knowledge of any pitfalls to watch out for with such a setup?
- What would be the best practice folder for installation and why?
- Can it be installed in a folder within wp-content?
- Will the SSO throw any redirect errors or can I just add mysite.com/forum as the auths Site URL?
- WP is using Apache, should I install NBB with Apache, or go with NGINX and leave WP using Apache?
PitaJ Global Moderator Plugin & Theme Dev
What would be the best practice folder for installation and why?
I suggest creating a new user on the system,
nodebb, complete with a home directory. Then, install your NodeBB forum under
/home/nodebb. This way, you need not worry about file permissions as long as you install and execute the forum with that user.
Can it be installed in a folder within wp-content?
I would not recommend doing this. Treat the two as entirely separate websites.
Will the SSO throw any redirect errors or can I just add mysite.com/forum as the auths Site URL?
It shouldn't care what domain you've set, as long as it is correct.
WP is using Apache, should I install NBB with Apache, or go with NGINX and leave WP using Apache?
To start with, I recommend putting Nginx in front of both Apache and NodeBB, as Nginx is the best supported reverse proxy that all of the core devs here use. Once you get everything working with that setup, you can experiment with using just Apache as your reverse proxy.
Thanks will give this a try.
Also considering having the WP site in an iframe on my NBB homepage, then styling both to match. However, with this option, I'm not sure how best to setup SSO. Is there a way to use NBB as Login, Registration and Profile and pass the info to WP. ie using NBB as the AUTH provider?