How to Install Zulip on Ubuntu 16.04

Zulip is a free, open source and powerful group chat application and collaborative software. It is written in Python and uses Django, Python, JavaScript, and PostgreSQL database. Zulip comes with lots of features such as private messaging, group chats, drag-and-drop file uploads, image previews, missed-message emails, desktop apps, and much more.

In this tutorial, we will explain how to install Zulip on Ubuntu 16.04 server.


  • A Server running Ubuntu 16.04.
  • A sudo user.

Step 1: Update the system

First, login to your server via SSH using the sudo user and update your system with the latest stable version with the following command:

sudo apt-get update -ysudo apt-get upgrade -ysudo shutdown -r now

Once your system is up-to-date, you can proceed to the next step.

Step 2: Install Required Packages

First, you will need to install required packages on your system. You can install it with the following command:

sudo apt-get install python-dev python-pip openssl nano vim wget -y

Once all the packages are installed, you can proceed to the next step.

Step 3: Install SSL Certificate

Before starting, install OpenSSL with the following command:

sudo apt-get install openssl -y

Next, generate a self signed ssl certificates with the following command:

sudo openssl genrsa -des3 -passout pass:x -out zulip.pass.key 4096sudo openssl rsa -passin pass:x -in zulip.pass.key -out /etc/ssl/private/zulip.keysudo rm -rf zulip.pass.keysudo openssl req -new -key /etc/ssl/private/zulip.key -out zulip.csrsudo openssl x509 -req -days 365 -in zulip.csr -signkey /etc/ssl/private/zulip.key -out /etc/ssl/certs/zulip.combined-chain.crt

Step 4: Download and Install Zulip

You can download the latest stable version of the Zulip from their official website with the following command:


Once the download is complete, extract the downloaded archive with the following command:

tar -xvzf zulip-server-latest.tar.gz

Next, change the directory to zulip and run the install script to start the installation with the following command:

cd zulipsudo ./scripts/setup/install

Next, you will need to modify located at /etc/zulip directory:

sudo nano /etc/zulip/

Change the file as shown below:


Save and close the file when you are finished, then initialize the postgresql database using the following command:

su zulip -c /home/zulip/deployments/current/scripts/setup/initialize-database

Once everything is setup correctly, restart zulip to check for any errors by running the following command:

su zulip -c /home/zulip/deployments/current/scripts/restart-server

Step 5: Access Zulip Web Interface

Once everything is setup properly. Open your web browser and navigate to the URL or http://your-server-ip, and register your new account.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article

No comments

Powered by Blogger.