How to Install Chatwoot Production Development on Ubuntu 20.04

Welcome to the Chatwoot Deployment Guide for Linux VMs. This guide will walk you through the process of installing Chatwoot on Ubuntu 20.04 LTS. Below are detailed steps to ensure a smooth installation process.

What is Chatwoot

Chatwoot is an open-source customer communication platform that enables businesses to engage with their customers across various channels, including websites, social media, and messaging apps, all from a single interface.

Prerequisites

Before proceeding with the installation, make sure your system meets the following prerequisites,

Hardware Requirements:

  • Minimum of 4 GB RAM.
  • Adequate storage space for Chatwoot and its dependencies.

Operating System:

  • Ubuntu 20.04 LTS is recommended.

Root Access:

  • Ensure you have root access or sudo privileges on the Linux VM.

Domain Configuration (Optional):

  • If you plan to use a domain with Chatwoot, ensure you have configured an A record pointing to the IP address of your VM.

Installation Steps

Follow these steps to install Chatwoot on your Ubuntu 20.04 LTS Linux VM,

Download the Installation Script,

Create an install.sh file using the following commands,

wget https://get.chatwoot.app/linux/install.sh
chmod +x install.sh

Execute the Installation Script

Run the installation script to set up Chatwoot,

./install.sh --install

Output:

root@vps:~# ./install.sh --install

***************************************************************************
              Chatwoot Installation (v3.6.0)
***************************************************************************

For more verbose logs, open up a second terminal and follow along using,
'tail -f /var/log/chatwoot-setup.log'.

Would you like to configure a domain and SSL for Chatwoot?(yes or no): yes
Enter the domain/subdomain for Chatwoot (e.g., chatwoot.domain.com): chat.domainhere.info
Would you like to install Postgres and Redis? (Answer no if you plan to use external services): no
Do you wish to proceed? (yes or no): yes

Would you like to install Postgres and Redis? (Answer no if you plan to use external services): no

➥ 1/9 Installing dependencies. This takes a while.
➥ 2/9 Skipping Postgres and Redis installation.
➥ 3/9 Installing webserver.
➥ 4/9 Setting up Ruby
➥ 5/9 Skipping database setup.
➥ 6/9 Installing Chatwoot. This takes a long while.
➥ 7/9 Skipping database migrations.
➥ 8/9 Setting up systemd services.
➥ 9/9 Setting up SSL/TLS.

***************************************************************************
Woot! Woot!! Chatwoot server installation is complete.
The server will be accessible at https://chat.domainhere.info

Join the community at https://chatwoot.com/community?utm_source=cwctl
***************************************************************************

🚀 Try out the all new Chatwoot CLI tool to manage your installation.
🚀 Type "cwctl --help" to learn more.

***************************************************************************
The database migrations had not run as Postgres and Redis were not installed
as part of the installation process. After modifying the environment
variables (in the .env file) with your external database credentials, run
the database migrations using the below command.
'RAILS_ENV=production POSTGRES_STATEMENT_TIMEOUT=600s bundle exec rails db:chatwoot_prepare'.
***************************************************************************

🚀 Try out the all new Chatwoot CLI tool to manage your installation.
🚀 Type "cwctl --help" to learn more.
root@vps:~#

Note: Replace chat.domainhere.info with actual domain

Access Chatwoot

Once the installation is complete, you can access Chatwoot at,

Fill the below details and click on Finish Setup, images

Once Finish setup is completed, you'll pop-up for login, enter login details, images

You'll get the dashboard like below, images

This concludes the Chatwoot Deployment Guide for Linux VMs. By following these steps, you can deploy Chatwoot on your Ubuntu 20.04 LTS system successfully.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS