RAM issue ✔ NPM common issue , for solving this use add swap 🙂
Installation
-
Hi,
I am trying to install nodebb on my server.
I am on step where I run:
node app --setup
Docs that I found say:
Finally, we can run NodeBB:
psychobunny@mynodebb:~/mynodebb$ node app
Open your browser and navigate to http://<YOUR SERVER’S IP ADDRESS>:4567, ex. http://198.199.67.89:4567But if I want that my forum is open via mydomain.com/blog
which setup need to do?Thanks!
-
The config.json look like this now:
{
"base_url": "http://204.XXX.XX.XXX",
"port": "4567",
"use_port": false,
"secret": "53d3cc2b-a70d-47a0-afdf-83c92e0ed134",
"bind_address": "mydomain.com/blog",
"database": "redis",
"redis": {
"host": "204.XXX.XX.XXX",
"port": "6379",
"password": "xxxxxx",
"database": "0"
},
"bcrypt_rounds": 12,
"upload_path": "/public/uploads",
"relative_path": ""
} -
You will need to setup a webserver with a reverse proxy.
Look at the wiki for using nginx with nodebb. -
@Scuzz thanks for reply.
I am on apache, exist some wiki for this?
-
Unfortunately not since we all use nginx, but if you stick around here, somebody else from the community may use apache and be able to help you!
-
@julian said:
Unfortunately not since we all use nginx, but if you stick around here, somebody else from the community may use apache and be able to help you!
Thanks Julian.
I have been able to install on Apache adding this to the vhost config:
ProxyPass /community http://localhost:4567/ ProxyPassReverse /community http://localhost:4567/
When I run via comand line, I got this error:
What can be?
Thanks!!
-
Looks like your Redis server is not currently running.
-
@julian Thanks for reply.
I got this warning, which said that require nodejs 0.8, but I am using higher 0.10
Does this can cause some issue?
-
@kamov -- most likely this should cause no problems.
-
I was able install with success, but now I have an error.
My config.json is this:
{
"base_url": "http://204.x.x.x",
"port": "4567",
"use_port": false,
"secret": "7dcaa8a3-2c7d-4782-8022-f57e151ac5cf",
"bind_address": "domain.com/community",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "",
"database": "0"
},
"bcrypt_rounds": 12,
"upload_path": "/public/uploads",
"relative_path": ""
}And I have added a proxy
ProxyPass /community http://localhost:4567/ ProxyPassReverse /community http://localhost:4567/
When I go to domain.com/community
My server is centos + apache.
-
If you are installing in a subfolder, during
node app --setup
you have to put inhttp://domain.com/community
as the URL of the installation, then yourrelative_path
will be/community
. -
Please change the following:
bind_address
should be left to0.0.0.0
, otherwise nobody will be able to access your NodeBBbase_url
can bedomain.com/community
.
-