How to install NodeBB on CyberPanel

How to install NodeBB on CyberPanel

NodeBB is modern forum software. It is highly customizable, and combines all the advantages of today’s mobile and social web with the deep community engagement of classic Internet bulletin boards. Built on the high-performance Node.js platform, NodeBB can scale to power the largest and most active brand communities.

Step 1: Install CyberPanel and Create Website

You first need to install CyberPanel and create your website. Skip this step if you have already done so. You can also issue SSL for this website.

Step 2: Enable the epel-release Repo

The next step is to enable the epel-release repository. You can do so using the following command:

Note: On CyberPanel servers epel-release is installed by default.

Step 3:  Development Tools

Note that Development Tools are a yum group of the predefined bundle of software installed at once. Typically, these tools are used to allow a user to build and compile software from source code.

Step 4: Install Node.js and Some Dependencies

On the next step, install Node.js and other required packages for NodeBB.

Step 5: Install latest version

Next, clone the NodeBB repository. Don’t forget to replace v1.0.0 with the latest stable version of NodeBB.

Make sure to replace with your domain name.

Step 6: npm istall in NodeBB Directory

Once your repository is cloned, obtain all of the dependencies required by NodeBB.

Step 6: Start Redis Service

Start the Redis service by issuing the following command.

Step 7: Setup NodeBB

Now, initiate the setup script by running the NodeBB with the setup flag as follows. The system will detect your setup as a new installation, so you’ll be asked few questions about your environment like listening port number, hostname, etc.

Note: Datebase name is redis.

Setup 8: Start NodeBB

Once NodeBB setup is configured, start it up to make sure that it runs as expected. Later we will run this application from OpenLiteSpeed directly.

Now, you should be able to access NodeBB through the default URL http://<IP Address>:4567. After entering the URL you will see this page in your web browser.

Once you see the page above it means NodeBB is successfully installed. You can stop this process so that we can continue to set it up with OpenLiteSpeed.

Setup 8: Setup NodeBB with OpenLiteSpeed

Now open your CyberPanel Dashboard. Click on Websites > List Websites > Manage

After Clicking the manage button we will see this page:

Find and add this code to the end of the vHost Conf File shown below:

Note: Replace with your domain name.

All done! NodeBB is installed on CyberPanel backed by OpenLiteSpeed.

2 thoughts on “How to install NodeBB on CyberPanel

Leave a Reply

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

%d bloggers like this: