I was having the same problem than you. Turns out, you have to run a special command after you installed node if you installed it on a shared server:
setfattr -n user.pax.flags -v "mr" $(find $NVM_DIR -type f -iname "node" -o -iname "npm" -o -iname "npx")
You can read more about this on Dreamhost's support site:
Installing a custom version of NVM and Node.js
Overview This article walks you through installing Node.js using Node Version Manager (nvm) on a Shared, VPS or Dedicated server. DreamHost support is unable to assist with custom installations...
@roy-miller said in Database and web server in separate vps?:
How can I install nodebb webserver and database in separate vps for scaling? Please share tutorial?
What do you need to know? It's as easy as installing the database on one VM and the app on another. When you put in the configuration information to the app in config.json it handles everything right there automatically, there is nothing "to know."
Now be aware, unless you are scaling to an absurd degree, this will have a serious negative effect of slowing your site down by adding latency. And I know of no NodeBB site that needs it. What kind of traffic are you expecting? We'd estimate that you'd need over a billion hits a month to even need to talk about something like this, and even then, it would only be "on your radar" and not something that you need.
I would step back and evaluate this carefully. Do you really feel that you are going to run the largest NodeBB installation of all time by orders of magnitude? And if so, maybe you want to bring in specialists who are very used to working with NodeBB and MongoDB and large scale scaling because you are going to need this to really, really work and not just be the first time you are experimenting with setting up something of this nature.
I wrote a tutorial about setting up single sign-on for NodeBB.
Full disclosure, I wrote it using my employers OAuth server (FusionAuth) as the user identity provider.
But the plugin and steps should work with any OAuth server. The plugin is here: https://github.com/FusionAuth/nodebb-plugin-fusionauth-oidc