Install with Postgres Database

Technical Support

Suggested Topics


  • 0 Votes
    17 Posts
    545 Views

    So after doing a lot of digging, I found out that the error was that NGINX needs to be configured for the SSL. This isn't really mentioned in the Ubuntu nodeBB guide, and the NGINX configuration guide linked on it is a dead link.

    First, I needed to combine my certificate and intermediate certificate (If you have a root certificate, you combine it as well) into one .cert file. This amounted to just copying the intermediate certificate and pasting it after the regular certificate (keeping the "BEGIN" and "END" lines).

    Then, I inserted the combined key into /etc/ssl/ directly. After doing this, I added my private key to a new folder I created in etc named "keys" (/etc/keys/).

    Lastly, I referenced my SSL in the "default" file in /etc/nginx/sites-available/default

    listen 443 ssl default_server; ssl on; ssl_certificate /etc/ssl/zbgamewiki.com_ssl_bundle.cer; ssl_certificate_key /etc/keys/_.zbgamewiki.com_private_key.key;

    And restarted nginx via sudo systemctl reload nginx

  • 0 Votes
    3 Posts
    274 Views

    Ok great, thanks!

  • 0 Votes
    3 Posts
    993 Views

    You have to use and download putty where you will write commands to interact with cpanel folders and then you can run and install nodebb .

  • Installation Errors

    Technical Support
    1
    0 Votes
    1 Posts
    859 Views

    Installing on a KVM VM, Centos 6 64bit. Followed the tutorial https://docs.nodebb.org/en/latest/installing/os/centos.html

    Getting errors though...

    [root@localhost ~]# curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash source ~/.bash_profile % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 101 3442 101 3442 0 0 16694 0 --:--:-- --:--:-- --:--:-- 98342 => Downloading nvm from git to '/root/.nvm' => Initialized empty Git repository in /root/.nvm/.git/ remote: Counting objects: 5491, done. remote: Compressing objects: 100% (7/7), done. Receiving objects: 100% (5491/5491), 1.58 MiB, done. remote: Total 5491 (delta 0), reused 0 (delta 0), pack-reused 5484 Resolving deltas: 100% (3321/3321), done. Note: checking out 'v0.13.1'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name HEAD is now at eef12cc... v0.13.1 Deleted branch master (was f9e14b7). => Appending source string to /root/.bash_profile => Close and reopen your terminal to start using nvm [root@localhost ~]# source ~/.bash_profile /usr/bin/which: no node in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin) [root@localhost ~]# nvm install v0.12.7 # as of this writing check the result of the list-remote to see all choices ######################################################################## 100.0% -bash: manpath: command not found Now using node v0.12.7 [root@localhost ~]# systemctl start redis -bash: systemctl: command not found [root@localhost ~]# [root@localhost ~]# systemctl enable redis -bash: systemctl: command not found'
  • 0 Votes
    5 Posts
    3k Views

    @pichalite said:

    npm ls connect-mongo

    I started the instalation from scratch, now using the answer from:
    https://community.nodebb.org/topic/7302/fatal-error-nan-h-no-such-file-or-directory
    after npm start and database configuration I received the message:

    make: Entering directory /root/nodebb/node_modules/mongodb/node_modules/kerberos/build' CXX(target) Release/obj.target/kerberos/lib/kerberos.o In file included from ../lib/kerberos.cc:1:0: ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory #include <gssapi/gssapi.h> ^ compilation terminated. make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1 make: Leaving directory /root/nodebb/node_modules/mongodb/node_modules/kerberos/build'
    gyp ERR! build error
    gyp ERR! stack Error: make failed with exit code: 2
    gyp ERR! stack at ChildProcess.onExit (/root/nodebb/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
    gyp ERR! stack at emitTwo (events.js:87:13)
    gyp ERR! stack at ChildProcess.emit (events.js:172:7)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
    gyp ERR! System Linux 3.13.0-71-generic
    gyp ERR! command "/usr/bin/nodejs" "/root/nodebb/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /root/nodebb/node_modules/mongodb/node_modules/kerberos
    gyp ERR! node -v v4.2.3
    gyp ERR! node-gyp -v v3.2.1
    gyp ERR! not ok
    [email protected] node_modules/connect-mongo

    so I ran: sudo apt-get install libkrb5-dev and finally ./nodebb start

    Now everything worked like a charm.

    Thx.