Ubuntu Server deployment

Deploy HelpChat Server 13 on Ubuntu Server. Ubuntu Server 20.04 / 22.04 / 24.04 LTS is recommended.

1. Extract the package

bash
tar -xzf HelpChat_Server_Linux_<arch>_<version>.tar.gz
cd HelpChat_Server_Linux_<arch>_<version>

2. Deploy to the permanent directory

bash
sudo mkdir -p /opt/helpchat_server
sudo cp -r * /opt/helpchat_server/
cd /opt/helpchat_server

A fixed directory makes long-term maintenance and automatic upgrades easier.

3. Set execute permissions

bash
sudo chmod +x helpchatsvr
sudo chmod +x bin/ffmpeg bin/ffprobe bin/hcupdater

4. Install and start the service

bash
sudo ./helpchatsvr install
sudo ./helpchatsvr start

5. Check the service status

bash
sudo ./helpchatsvr status

6. Run mode configuration

Edit the configuration file config/helpchatsvr.ini and find the [runtime] section:

config/helpchatsvr.ini
[runtime]
run_mode = 0    ; office mode, uses the db_office database
run_mode = 1    ; operations mode, uses the db_market database

7. Database configuration (optional)

SQLite is used by default and works out of the box with no extra configuration.

To use another database, edit the [database] section of config/helpchatsvr.ini:

config/helpchatsvr.ini
[database]
type      = sqlite / mysql / postgres / sqlserver
host      = database host
port      = database port
user      = database username
password  = database password
db_office = office database name (used when run_mode=0)
db_market = operations database name (used when run_mode=1)

Warning

For any database other than SQLite, make sure an empty database with the same name has been created first:
sql
-- Office mode
CREATE DATABASE helpchat_office CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Operations mode
CREATE DATABASE helpchat_market CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Restart the service after changing the configuration: sudo ./helpchatsvr restart

8. Other commands

CommandDescription
sudo ./helpchatsvr startStart the service
sudo ./helpchatsvr stopStop the service
sudo ./helpchatsvr restartRestart the service
sudo ./helpchatsvr statusShow status
sudo ./helpchatsvr runRun in the foreground in the console
sudo ./helpchatsvr uninstallUninstall the service
./helpchatsvr versionShow version

9. Default ports

PortNamePurposeSettingNotes
6800LoginUser registration and sign-inlogin_port
6866KernelCore messaging and persistent connectionskernel_port
6888StorageFile upload and download, image transferstorage_port
6816HelpPostForum / knowledge basehelppost_portSet to 0 to disable
6898RepeaterVNC remote desktop relayrepeater_portSet to 0 to disable
6980ManagerWeb admin consolemanager_port

Make sure the firewall allows the ports above:

bash
sudo ufw allow 6800,6866,6888,6816,6898,6980/tcp

10. Admin console

text
URL: http://server-IP:6980
Default account: admin
Default password: helpchat