How to install on Hestia panel
Installing BlaB! WS Pro 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 managed with Hestia Panel Linux server (VPS) with SSH access as a root user or with
sudo
- A Hestia panel website on this server with PHP, MariaDB, Nginx as a frontend proxy and SSL enabled
- telnet installed on the server:
apt|yum install telnet
php_mysqli
,php_curl
&php_fileinfo
extensions,php_json
extension on PHP5- shell_exec enabled in php.ini (how to check / enable shell_exec)
Step 1
Download blabws-server-pro 32-bit or 64-bit, unzip and upload the folder blabws-server-pro under your own directory so that the absolute path to the blabws-server-pro executable file is: /home/USER/blabws-server-pro/blabws-server-pro
USER
is the username you login to Hestia Panel with, probably admin- Upload in binary mode - the two files blabws-server-pro on your computer & remote server must be exactly the same size
- Make sure the server is executable:
chmod +x /home/USER/blabws-server-pro/blabws-server-pro
or Filezilla » File Permissions » 755
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
USER
is the username you login to Hestia panel with, andYOUR_WEBSITE_URL.COM
obviously the URL of your website.- Ubuntu/Debian - if you cannot SFTP as root and the file cannot be accessed with Filezilla, SSH to your server with PuTTY / KiTTY / BitviseSSH and run the following command to edit the file with nano:
sudo nano /home/USER/conf/web/YOUR_WEBSITE_URL.COM.nginx.ssl.conf
( nano: save with CTRL+o - confirm with Enter - exit with CTRL+x ):
Save and restart Nginx from Hestia Panel » Server or systemctl reload nginx
Step 3
Download BlaB! WS Pro (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 blabwspro/config.php to 666, blabwspro/attachments to 777, navigate with your browser to YOUR_WEBSITE_URL.COM/blabwspro/index.php and follow the instructions (3 steps only):
- At STEP 1 replace
/opt/blabws-server-pro/blabws-server-pro
with the absolute filepath to your blabws-server-pro/home/USER/blabws-server-pro/blabws-server-pro
(see step 1 above)
Step 4
At the end of the installation process you'll see a link to the Admin CP - go to Server, and set:
- protocol: wss
- Port: remove 9002 and leave the box empty
- ProxyPass token: MyWsServer
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!