How to Install Live Helper Chat on Debian Latest
Live Helper Chat is an open-source platform for customer support, which allows users to communicate with website visitors in real-time. In this tutorial, we will guide you through the installation of Live Helper Chat on Debian Latest using the command line.
Prerequisites
Before you begin, make sure you have the following:
- A Debian Latest server or virtual machine with root access.
- Apache, MySQL, and PHP (LAMP) stack installed.
Step 1: Install Required PHP Extensions
Live Helper Chat requires some PHP extensions to be installed on the system. To install the required PHP extensions, run the following command:
sudo apt-get install -y php-curl php-gd php-xml php-mbstring
Step 2: Download Live Helper Chat
Download the latest version of Live Helper Chat from the official website using the following command:
sudo wget https://livehelperchat.com/site/assets/files/10701/lhc_release_3.66.0.zip
Extract the downloaded file using the following command:
sudo unzip lhc_release_3.66.0.zip -d /var/www/
Step 3: Create a MySQL Database
Log in to MySQL using the following command:
sudo mysql -u root -p
Create a new database for Live Helper Chat using the following commands:
CREATE DATABASE lhcdb;
GRANT ALL PRIVILEGES ON lhcdb.* TO 'lhcuser'@'localhost' IDENTIFIED BY 'lhcpassword';
FLUSH PRIVILEGES;
Replace 'lhcdb', 'lhcuser', and 'lhcpassword' with the desired database, username, and password.
Step 4: Configure Apache
Create a new virtual host configuration for Live Helper Chat using the following command:
sudo nano /etc/apache2/sites-available/lhc.conf
Add the following lines to the configuration file:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName yourdomain.com
DocumentRoot /var/www/lhc_web/
<Directory /var/www/lhc_web/>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
ErrorLog /var/log/apache2/lhc_error.log
CustomLog /var/log/apache2/lhc_access.log combined
</VirtualHost>
Replace '[email protected]', 'yourdomain.com', and '/var/www/lhc_web/' with the appropriate values.
Enable the virtual host using the following command:
sudo a2ensite lhc.conf
Restart Apache using the following command:
sudo systemctl restart apache2
Step 5: Install Live Helper Chat
Open a web browser and navigate to 'http://yourdomain.com/install/install.php'. Follow the on-screen instructions to complete the installation.
During the installation, when prompted for database details, enter the following:
- Database type: MySQL
- Database server hostname: localhost
- Database name: lhcdb
- Database username: lhcuser
- Database password: lhcpassword
Replace 'lhcdb', 'lhcuser', and 'lhcpassword' with the values you set in Step 3.
After the installation is complete, delete the 'install' folder using the following command:
sudo rm -rf /var/www/lhc_web/install/
Conclusion
Congratulations! You have successfully installed Live Helper Chat on Debian Latest. You can now log in to the Live Helper Chat administration panel, configure your settings, and start communicating with your website visitors in real-time.