How to Install Chatwoot on Ubuntu Linux

laptop 4662049 640

This brief tutorial shows students and new users how to quickly and easily install Chatwoot on Ubuntu 20.04 | 18.04.

Chatwoot is an open source, real-time messaging platform that also provides simple and elegant live chat for your websites, collaborate with other agents and messaging apps and more.

Businesses can use Chatwoot to connect with their customers on channels of their choice and can easily integrate with other chat platforms online to supercharge your workflow.

If you’re currently using a chat platform to manage your messaging and connect with client, but looking for an affordable option, Chatwoot should be a great place to start.

To get started with installing Chatwoot on Ubuntu, follow the steps below.

Download Chatwoot script

Chatwoot comes with an easy to use script that will download and install all packages that are necessary to run the platform.

Open your terminal and run the commands below to download Chatwoot packages.

cd /tmp
wget -O

Install Chatwoot

After downloading using the comment above, change the script permission to make it executable.

Then install it.

sudo chmod 755
sudo ./ master

Upon a successful installation, you should see a message similar to the one below:

oot! Woot!! Chatwoot server installation is complete
The server will be accessible at http://<server-ip>:3000
To configure a domain and SSL certificate, follow the guide at

Chatwoot will now be accessible at the server hostname or IP address followed by port #3000.

install chatwoot on ubuntu

Login and begin setting up your envorinment.

chatwoot web portal on ubuntu

Although the installation seems complete, for your Chatwoot installation to properly function, you would need to configure the essential environment variables, Mailer and a cloud storage config.

For login as Chatwoot user and create an environment variable folder.

sudo -i -u chatwoot
cd chatwoot
nano .env

Now you can reference its variables page the add variable definitions in the file.

Environment Variables (

For example, to use Facebook channel, you can add the lines below in the file.


To use Sendgrid, use the block below:
SMTP_DOMAIN=<your verified domain>
SMTP_PASSWORD=<your Sendgrid API key>

To change the frontend URL, edit the line below:

# Replace with the URL you are planning to use for your app

The all zeros for IP means the server is listening on all IPs.

After making changes to the environment file, run the commands below to restart Chatwoot.

sudo systemctl restart

That should do it!

If you want to run Chatwoot with Nginx web server and Let’s encrypt, use the configuration below:

server {
  listen 80;
  listen [::]:80;

  access_log /var/log/nginx/chatwoot_access_80.log;
  error_log /var/log/nginx/chatwoot_error_80.log;

  return 301;

server {
  listen 443 ssl http2;
  listen [::]:443 ssl http2;

  underscores_in_headers on;

  access_log /var/log/nginx/chatwoot_access_443.log;
  error_log /var/log/nginx/chatwoot_error_443.log;

  location / {
   proxy_pass_header Authorization;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "upgrade";
   proxy_set_header Host $host;
   proxy_set_header X-Forwarded-Proto $scheme;
   proxy_set_header X-Forwarded-Ssl on; # Optional
   proxy_set_header X-Real-IP $remote_addr;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   proxy_http_version 1.1;
   proxy_set_header Connection “”;
   proxy_buffering off;
   client_max_body_size 0;
   proxy_read_timeout 36000s;
   proxy_redirect off;

  ssl_certificate /etc/letsencrypt/live/; # managed by Certbot
  ssl_certificate_key /etc/letsencrypt/live/; # managed by Certbot
  add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
  ssl_protocols TLSv1.2 TLSv1.3;
  ssl_prefer_server_ciphers off;
  ssl_dhparam /etc/ssl/dhparam;

That should do it!


This post showed you how to install Chatwoot on Ubuntu 20.04 | 18.04. If you find any error above, please use the form below to report.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.