How to install on Hestia panel


Installing BlaB! WS on a Hestia Panel managed server is extremely easy and in case you can SFTP with Filezilla with username root you don't even need to run any terminal commands. You are supposed to have a default or close to default Hestia panel configured website - PHP, MariaDB, Nginx as a frontend proxy and SSL enabled.


Requirements

A websocket service and a websocket server are the same thing. We call the server part of our chat software a websocket service rather than a websocket server to easily distinguish it from web servers, MySQL servers, hosting servers, DHCP servers. Websocket service = websocket server = blabws-server

Step 1

Download blabws-server 32-bit or 64-bit, unzip and upload the folder blabws-server under your own directory so that the absolute path to the blabws-server executable file is: /home/USER/blabws-server/blabws-server


Step 2

Make a backup and then add the following block within the server block of your website ( just before the last } ) in the Nginx config:

location /MyWsServer/ {
    proxy_pass http://127.0.0.1:9002;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_read_timeout 600s;
    # connection will be closed after 600 seconds of inactivity
    }

You CANNOT do this from Hestia Panel. Use Filezilla or SSH/nano.

Nginx config file: /home/USER/conf/web/YOUR_WEBSITE_URL.COM.nginx.ssl.conf

Save and restart Nginx from Hestia Panel » Server or systemctl reload nginx


Step 3

Download BlaB! WS (client), unzip the content in an empty folder and upload it to your server under your website directory:

/home/USER/web/YOUR_WEBSITE_URL.COM/public_html

( where USER is the username you login to Hestia panel with, and YOUR_WEBSITE_URL.COM the URL of your website )

CHMOD blabws/config.php to 666, blabws/attachments to 777, navigate with your browser to YOUR_WEBSITE_URL.COM/blabws/index.php and follow the instructions (3 steps only):


Step 4

At the end of the installation process you'll see a link to the Admin CP - go to Server, and set:

Save with OKAY, start your server from BOARD » WEBSOCKET STATUS, press the ESC key to display the menu, hit EXIT to go to chat.

Done!


Page updated: 2024-11-02
 
Powered by BlaB! Pages