Live Helper Chat
Generated on 6 Apr 2022 from the Live Helper Chat catalog page
With almost 30K installs detected during application lifetime (10Y) it’s a stable solution for everyone who want’s to have Live Support Chat application hosted on their infrastructure.
Software Included
Package | Version | License |
---|---|---|
Nginx | 1.20.1 | Custom |
MariaDB | 10.4.24 | GPL 2 |
NodeJS | 10.24.1 | Custom |
Redis | 3.2.12 | 3-Clause-BSD |
Fail2ban | 0.11.1 | GPL 2 |
PHP | 7.4.28 | PHP License v3.01 |
Postfix | 2.10.1 | IBM Public |
Creating an App using the Control Panel
Click the Deploy to DigitalOcean button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.
Creating an App using the API
In addition to creating a Droplet from the Live Helper Chat 1-Click App using the control panel, you can also use the DigitalOcean API. As an example, to create a 4GB Live Helper Chat Droplet in the SFO2 region, you can use the following curl
command. You need to either save your API access token) to an environment variable or substitute it in the command below.
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer '$TOKEN'' -d \
'{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image": "livehelperchat-7-8-2003"}' \
"https://api.digitalocean.com/v2/droplets"
Getting Started After Deploying Live Helper Chat
In addition to the package installation, the One-Click also:
- Enables the
firewalld
to allow only SSH (port 22, rate limited), HTTP (port 80), and HTTPS (port 443) access. - Sets the MariaDB root password and runs mysql_secure_installation.
Note, the Droplet root user will not be prompted for the MySQL password.
- Modifies some of PHP’s/Nginx’s settings to increase the maximum filesize.
After you create a Live Helper Chat One-Click Droplet, you’ll need to log into the Droplet via SSH to finish the Live Helper Chat setup. If you try to visit the Droplet’s IP address before logging into the Droplet, you’ll see a Live Helper Chat landing page.
From a terminal on your local computer, connect to the Droplet as root. Make sure to substitute the Droplet’s IP address.
ssh root@use_your_droplet_ip
Once the installation is complete, you can use the Live helper Chat administration dashboard to further customize the Live Helper Chat. Back office address will be found at
http://<ip>/site_admin/
If you setup HTTPS with your domain
https://example.com/site_admin/
To update Live Helper Chat run this command. I always recommend to update after a fresh install.
/opt/livehelperchat/lhc_upgrade.sh
For reference:
- The MySQL root password is in /root/.digitalocean_password. Note, the Droplet root user will not be prompted for the MySQL password.
- The web root is /var/www/html, and the Live Helper Chat configuration file is /var/www/html/settings/settings.ini.php.
- You can get information about the PHP installation by logging into the Droplet and running php -i. In addition, there are a few customized setup steps that we recommend you take.
If you didn’t enable HTTPS during the initial setup script, you can enable it manually at any time after the fact.
Setting up an SSL certificate enables HTTPS on the web server, which secures the traffic between the server and the clients connecting to it. Certbot is a free and automated way to set up SSL certificates on a server. It’s included as part of the Live Helper Chat One-Click to make securing the Droplet easier.
To use Certbot, you’ll need a registered domain/subdomain name and one DNS record:
- An A record from the domain (e.g., example.com, support.example.com) to the server’s IP address
- You will need to adjust
/etc/nginx/conf.d/lhc.conf
and append your domain/subdomain toserver_name
directive.
Once the DNS records and, optionally, the virtual hosts files are set up, you can generate the SSL certificate. Make sure to substitute the domain in the command.
certbot --nginx -d support.example.com