Loading...

Knowledge Base

Purchase a HostGator Self-Managed VPS with Chatwoot on Ubuntu 24.04 Installation

Chatwoot brings your live chat, email, and social conversations into one inbox. Your team stops juggling separate tools to talk to customers. Agent assignment, canned responses, conversation labels, and built-in reporting complete a support workspace that runs entirely on infrastructure you own.

Key Benefits of Chatwoot

Run your own Chatwoot server, and you get full control: shape the configuration around your needs and keep user data private. Add resources whenever your team or ticket volume grows. Chatwoot is open source, so you tap into an active community-built platform without paying licensing fees. Once secured with your own domain and SSL, your conversations are encrypted end-to-end. Best of all, hosting it yourself means you skip the recurring SaaS bill that comes with many customer engagement platforms.

What You Can Do With Chatwoot

Chatwoot fits how your team already handles support, and it grows with you as your needs change:

  • Manage Customer Conversations: Run reliable, secure chat sessions for your team and the people you support.
  • Support Tickets and Collaboration: Keep support requests organized and work through them as a team.
  • Multi-Channel Integration: Bring Chatwoot into your existing websites, apps, and business tools.
  • Manage Users: Set access levels, permissions, and chat preferences across your organization.
  • Automate Workflows: Put routine conversations and support steps on autopilot.
  • Custom Integrations: Link Chatwoot to your CRM, email platform, and other business systems.

No matter how your team handles support today, Chatwoot gives you the tools to run it more efficiently.

System Requirements

Before deploying, ensure your server meets the following minimum hardware requirements. For a stable production deployment, we recommend using higher specifications than the minimum requirements.

Resources Minimum Requirements Recommended
CPU 2 4
Memory (RAM) 4 GB 8 GB
Disk 20 GB 20 GB

How to Purchase a Self-Managed VPS with Chatwoot on Ubuntu 24.04 Installation

To use Chatwoot on HostGator, you first need to buy a Self-Managed VPS plan. Here is how to do it:

Pre-configured Setup

Self-Managed VPS - Pre-configured Setup
Not sure which VPS setup is right for you? That's exactly what Pre-configured Setup is for. You'll find this option near the top of the HostGator Self-Managed VPS purchase page, and it takes the guesswork out of getting started. Just tell us what you're building—a WordPress Site, an AI Agent/Claude Code project, a Dev/Staging environment, or an eCommerce Store—and we'll automatically select the right plan, operating system, and template to match.
  • Great option if you're new to VPS or want a fast, easy setup
  • Get the recommended configuration for your project right away
  • No need to figure out the technical details yourself
  • Full flexibility to adjust settings later on
Try Pre-configured Setup and have your HostGator Self-Managed VPS ready to go in minutes!
  1. Open https://www.hostgator.com/vps-hosting in your browser.
  2. Pick the plan you want and click Choose Plan.

    Self-Managed VPS - Choose Plan
     

  3. Pick a Data Center location.

    Self-Managed VPS - Data Center Locations
     

  4. On the Cart page, you can set up your server the way you want:
    1. Hardware:
      1. Pre-selected:

        You can change to a different Self-Managed VPS plan here.

        Self-Managed VPS - Pre-selected Hardware
         

      2. Configure:

        Click Configure if you want to build your own custom package.

        Self-Managed VPS - Configure
         

    2. Software:
      1. Click the Application tab.
      2. Choose Chatwoot on Ubuntu 24.04.

        Self-Managed VPS - Chatwoot on Ubuntu 24.04 Software
         

      3. In the pop-up, click Confirm.

        Self-Managed VPS - Chatwoot -Confirm
         

  5. Support & Security:

    You can add Premium Support here for faster help and quicker replies. This is Optional.

    Self-Managed VPS - Premium Support
     

  6. AI Credits:

    Add a HostGator AI Credits package to connect your application to top LLM providers through one API key and a single bill. This step is optional.

    Self-Managed VPS - AI Credits
     

  7. In Advanced options, you can set these up if you want:
    • Extra IPs: Add more IP addresses for an extra cost. The price changes based on how many you add.
    • Hostname: Give your server a custom name. This is optional.
    • SSH Key: If you want to log in without a password, add your SSH public key here. This is optional.

      Self-Managed VPS - Advanced Options
       

  8. Choose a billing term, check your Order Summary, then click Continue to Checkout.

    Self-Managed VPS -Initial- Order Summary
     

  9. Check your HostGator cart. Remove any add-ons you don't want, then click Continue to Checkout again.

    Self-Managed VPS - Continue to Checkout
     

  10. On the Checkout page, do the following:

    If you are new to HostGator:

    1. Fill in your billing information and contact details. If you don't want marketing emails, uncheck the box at the bottom.

      Self-Managed VPS - Billing Information
       

    2. Create a password for your account.

      Self-Managed VPS - Account Password
       

    3. Choose how you want to pay—Credit Card or PayPal—and enter your payment details.

      Self-Managed VPS - Payment Method Options
       

    If you already have an account, your HostGator login details will show up once you log in to your Customer Portal. If you are not logged in, click Log In.

    Self-Managed VPS - HostGator Login
     

  11. Review your payment method and order total. If you have a promo code, click Add Promo Code and enter your code. If you need to make changes, click Edit or Add Payment Method. When everything looks correct, click Submit Payment to complete your purchase. By clicking Submit Payment, you agree to the Auto Renewal Terms, Terms of Service, Cancellation Policy, and Privacy Notice.

    Self-Managed VPS - Submit Payment
     

After checkout, your Self-Managed VPS will begin setting up. Once it’s ready, you can find it under the Hosting tab in your Customer Portal.

Setting Up and Securing Chatwoot on Ubuntu 24.04

Chatwoot is a capable, open-source support platform, but it needs a handful of configuration steps before it's ready for real traffic. This guide walks through that entire process. Work through the steps below to reach the web interface, put a valid SSL certificate in place, and follow good security practices for your support workspace.

Step 1: Set Your Root Password

  1. Log in to your Customer Portal.
  2. From the left-hand menu, navigate to Hosting and select My Plans.

    Customer Portal - Hosting tab - View Details
     

  3. Locate the server you want to manage, then click View Details in the bottom-left corner to expand the section and access additional server information.

    Customer Portal - Hosting tab - View Details
     

  4. Click the Reset Password button.

    Customer Portal - Hosting tab - View Details - Reset Password
     

  5. In the pop-up window, type your new root password, then click Reset Password again to confirm and save the changes.

    Customer Portal - Hosting tab - View Details - Reset Password
     

Step 2: Connect To Your Server via SSH

  1. Connect to your VPS via SSH.
    Open a terminal (or an SSH client like PuTTY) and log in as the administrator using your server's public IP address:
    ssh root@your_server_ip
    Follow the prompts and enter the new root password you set in the step above.
  2. Give the background setup a moment to finish. On first boot, a script automatically generates a fresh SECRET_KEY_BASE for the Rails app and stores it securely. If you ever want to check the rotated Rails secret from your server terminal, print it with:
    grep CHATWOOT_SECRET_KEY_BASE /root/.app_passwords

Step 3: Open the Web Panel

Step away from the terminal for a moment and switch over to your web browser.

  1. Navigate to the panel: Go to http://(replace with your server's actual public IP address).

    Example: [http://12.3.456.789] (http://12.3.456.789)

  2. Create your account: On the first screen, set up your initial user account. Whoever creates the first account automatically becomes Super Admin, with the ability to invite other agents.

    Self-Managed - Chatwoot - Create Account
     

  3. Once your account is created, the page refreshes and asks you to log in with those same credentials.

    Self-Managed - Chatwoot - Login Page
     

  4. You're now in your Dashboard.

    Self-Managed - Chatwoot - Dashboard
     

Step 4: Connect Your Custom Domain (Recommended)

Out of the box, your Chatwoot instance is only reachable by raw IP address over an unencrypted HTTP connection. For anything running in production, connect a custom domain (like support.yourcompany.com) and lock it down with TLS/SSL.

  1. DNS Configuration: In your DNS provider's dashboard, create an A Record pointing your chosen domain at your server's public IP.
  2. Update Environment Variables:
    1. Log in to your server and update the FRONTEND_URL variable inside this directory.
      /home/chatwoot/chatwoot/.env
    2. Give the install a few minutes to finish, then run:
      nano /home/chatwoot/chatwoot/.env

      Example Output:

        GNU nano 7.2                                                            /home/chatwoot/chatwoot/.env
      # Learn about the various environment variables at
      # https://www.chatwoot.com/docs/self-hosted/configuration/environment-variables/#rails-production-variables
      
      # Used to verify the integrity of signed cookies. so ensure a secure value is set
      # SECRET_KEY_BASE should be alphanumeric. Avoid special characters or symbols.
      # Use `rake secret` to generate this variable
      SECRET_KEY_BASE=examplet3st7ccc895635546ccf1fff6c6335167d1569ec2c4253e508737c1a78acb4381f773ebaf5fe7c6f491e75541060d4f7f0fe8441db26120edbc9ee4bdc
      
      # Active Record Encryption keys (required for MFA/2FA functionality)
      # Generate these keys by running: rails db:encryption:init
      # IMPORTANT: Use different keys for each environment (development, staging, production)
      # ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=
      # ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=
      # ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=
      
      # Replace with the URL you are planning to use for your app
      FRONTEND_URL=http://12.3.456.789
      # To use a dedicated URL for help center pages
      # HELPCENTER_URL=http://0.0.0.0:3000
      
      # If the variable is set, all non-authenticated pages would fallback to the default locale.
      # Whenever a new account is created, the default language will be DEFAULT_LOCALE instead of en
      # DEFAULT_LOCALE=en
      
      # If you plan to use CDN for your assets, set Asset CDN Host
      ASSET_CDN_HOST=
      
      # Force all access to the app over SSL, default is set to false
      FORCE_SSL=false
      
      # This lets you control new sign ups on your chatwoot installation
      # true : default option, allows sign ups
      # false : disables all the end points related to sign ups
      # api_only: disables the UI for signup, but you can create sign ups via the account apis
      ENABLE_ACCOUNT_SIGNUP=false
      
      # Redis config
      # specify the configs via single URL or individual variables
      # ref: https://www.iana.org/assignments/uri-schemes/prov/redis
      # You can also use the following format for the URL: redis://:password@host:port/db_number
                                                           [ line   1/288 ( 0%), col  1/51 (  1%), char     0/10563 ( 0%) ]
      ^G Help          ^O Write Out     ^W Where Is      ^K Cut           ^T Execute       ^C Location      M-U Undo         M-A Set Mark     M-] To Bracket   M-Q Previous
      ^X Exit          ^R Read File     ^\ Replace       ^U Paste         ^J Justify       ^/ Go To Line    M-E Redo         M-6 Copy         ^Q Where Was     M-W Next
    3. Find FRONTEND_URL and change it to your domain (e.g., https://support.yourdomain.com).
  3. Configure Nginx: Update the server_name directive in the Nginx configuration file located at:
    /etc/nginx/sites-available/chatwoot
    1. Edit the Nginx configuration:
      nano /etc/nginx/sites-available/chatwoot

      Example Output:

        GNU nano 7.2                                     /etc/nginx/sites-available/chatwoot
      upstream chatwoot {
          server 127.0.0.1:3000;
      }
      
      server {
          listen 80 default_server;
          listen [::]:80 default_server;
          server_name _;
      
          client_max_body_size 50M;
      
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection "upgrade";
          proxy_set_header Host $host;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header X-Forwarded-Proto $scheme;
      
          location / {
              proxy_pass http://chatwoot;
          }
      
          location /cable {
              proxy_pass http://chatwoot;
              proxy_read_timeout 600s;
              proxy_send_timeout 600s;
          }
      }
      
      
      ^G Help         ^O Write Out    ^W Where Is     ^K Cut          ^T Execute      ^C Location     M-U Undo        M-A Set Mark
      ^X Exit         ^R Read File    ^\ Replace      ^U Paste        ^J Justify      ^/ Go To Line   M-E Redo        M-6 Copy
    2. Update the server_name directive to match your domain, using the same nano steps from above.
  4. Run this command to automatically provision a free Let's Encrypt SSL certificate.
    certbot --nginx -d your.domain
  5. Apply everything by running:
    systemctl restart chatwoot.target nginx

Step 5: Day-to-Day Management

The image also comes with tools to keep things running smoothly. UFW is already configured to allow only essential traffic (web and SSH), and daily log rotation keeps old logs from filling up your disk.

Keep these commands on hand for troubleshooting or restarting the system:

  • Check health:
    systemctl status chatwoot.target
  • Reboot the app:
    systemctl restart chatwoot.target
  • View error logs:
    journalctl -u chatwoot-web.1 -n 100 --no-pager

Additional Information and Examples

You can run cat /root/README.md to see more information and useful commands:

Example Output:

root@12-3-456-789:~# cat /root/README.md
# Chatwoot on Ubuntu 24.04

## Description

Chatwoot is an open-source customer support platform that lets you manage
conversations from live chat, email, and social channels in one inbox.

It supports team collaboration with agent assignment, canned responses,
conversation labels, and performance reporting, giving you a complete support
workspace you host and control yourself.

## Image contents

This template installs and configures:

* Chatwoot from the official upstream installer at `https://get.chatwoot.app/`
* PostgreSQL local database service
* Redis (used for Sidekiq queues and ActionCable)
* Nginx reverse proxy fronting Chatwoot on ports 80/443
* Ruby (via rbenv) and Node.js with pnpm
* `chatwoot` system user with source tree at `/home/chatwoot/chatwoot`
* Chatwoot env file at `/home/chatwoot/chatwoot/.env`
* systemd units `chatwoot-web.1.service` and `chatwoot-worker.1.service`,
  grouped under `chatwoot.target`
* Daily log rotation for `/home/chatwoot/chatwoot/log/*.log` (14 day retention)
* UFW firewall rules for SSH, HTTP, and HTTPS
* First-boot injection script at `/var/lib/cloud/scripts/per-instance/001_onboot`
* App password store at `/root/.app_passwords`

## Services

Service     | Ports     | Purpose
----------- | --------- | -----------------------------------------------------------
Nginx       | 80, 443   | Reverse proxy fronting Chatwoot
Chatwoot    | 3000      | Rails web app (bound locally, fronted by Nginx)
PostgreSQL  | local     | Database backend for Chatwoot
Redis       | local     | Sidekiq queue and ActionCable backend
OpenSSH     | 22        | Remote access

Ports are protected using UFW.

## First boot behavior

On the first boot, the cloud-init per-instance script
`/var/lib/cloud/scripts/per-instance/001_onboot`:

* generates a fresh `SECRET_KEY_BASE` for the Rails app
* stores it securely in `/root/.app_passwords`
* updates `/home/chatwoot/chatwoot/.env`
* waits for PostgreSQL readiness
* starts Chatwoot and Nginx

This guarantees that no Rails secret is shared between deployed images.

## First-time access (How-to-use)

After the VM boots, access Chatwoot at:

* `http://`

On the first screen, create the first account. The first account you create
becomes the Super Admin and can invite agents from the dashboard.

To serve Chatwoot on your own domain with TLS:

1. Point your DNS A record at the server IP.
2. Update the `FRONTEND_URL` in `/home/chatwoot/chatwoot/.env`.
3. Update `server_name` in `/etc/nginx/sites-available/chatwoot`.
4. Run `certbot --nginx -d your.domain` to issue a Let's Encrypt certificate.
5. Restart with `systemctl restart chatwoot.target nginx`.

## Useful commands

* Check Chatwoot status:
  `systemctl status chatwoot.target`
* Restart Chatwoot:
  `systemctl restart chatwoot.target`
* View web logs:
  `journalctl -u chatwoot-web.1 -n 100 --no-pager`
* View worker logs:
  `journalctl -u chatwoot-worker.1 -n 100 --no-pager`
* View Rails production log:
  `journalctl -u chatwoot-web.1.service -n 100 --no-pager`
* Show the rotated Rails secret:
  `grep CHATWOOT_SECRET_KEY_BASE /root/.app_passwords`

## Validation tests

The template includes a validation script at `/root/app_test/main.t` that checks:

* `postgresql`, `redis-server`, `nginx`, and `chatwoot.target` are enabled
* `/home/chatwoot/chatwoot` source tree exists
* `/home/chatwoot/chatwoot/.env` exists
* first-boot script exists and is executable
* `chatwoot-web.1` is active

## Minimum Resources

Resource | Minimum
---------|---------
Ram      | 4G
Disk     | 20G
CPU      | 2

## Links

* Manage: [http://{server_ip}](http://{server_ip})
* Chatwoot documentation: [https://www.chatwoot.com/docs](https://www.chatwoot.com/docs)
* Community forum: [https://github.com/chatwoot/chatwoot/discussions](https://github.com/chatwoot/chatwoot/discussions)

Loading...