2022-02-12 01:32:47 +01:00
# Install a Zulip server
2016-07-12 21:49:44 +02:00
2024-02-15 05:52:44 +01:00
You can choose from several convenient options for hosting Zulip:
2022-02-12 01:32:47 +01:00
2024-02-15 05:52:44 +01:00
- Follow these instructions to **install a self-hosted Zulip server on a system
of your choice**.
- Use a preconfigured
[DigitalOcean droplet ](https://marketplace.digitalocean.com/apps/zulip?refcode=3ee45da8ee26 )
- Use Zulip's [experimental Docker image ](deployment.md#zulip-in-docker ).
- Use [Zulip Cloud ](https://zulip.com/plans/ ) hosting. Read our [guide to choosing between Zulip Cloud and
2024-09-25 18:37:23 +02:00
self-hosting](https://zulip.com/help/zulip-cloud-or-self-hosting).
2019-07-20 00:50:50 +02:00
2024-05-02 13:58:38 +02:00
To **import data** from [Slack][slack-import], [Mattermost][mattermost-import], [Rocket.Chat][rocketchat-import], [Zulip Cloud][zulip-cloud-import], or [another Zulip
2024-02-15 05:52:44 +01:00
server][zulip-server-import], follow the linked instructions.
2022-02-12 01:32:47 +01:00
2024-02-15 05:52:44 +01:00
You can **try out Zulip** before setting up your own server by [checking
it out](https://zulip.com/try-zulip/) in the Zulip development community, or
[creating a free test organization ](https://zulip.com/new/ ) on Zulip Cloud.
2022-02-12 01:32:47 +01:00
2024-02-15 05:52:44 +01:00
:::{note}
These instructions are for self-hosting Zulip. To
[contribute ](../contributing/contributing.md ) to the project, set up the
[development environment ](../development/overview.md ).
:::
2022-02-12 01:32:47 +01:00
2024-02-15 05:52:44 +01:00
## Installation process overview
2023-03-30 16:22:14 +02:00
2024-02-15 05:52:44 +01:00
0. [Set up a base server ](#step-0-set-up-a-base-server )
1. [Download the latest release ](#step-1-download-the-latest-release )
1. [Install Zulip ](#step-2-install-zulip )
1. [Create a Zulip organization, and log in ](#step-3-create-a-zulip-organization-and-log-in )
That's it! Once installation is complete, you can
[configure ](settings.md ) Zulip to suit your needs.
## Step 0: Set up a base server
Provision and log in to a fresh Ubuntu or Debian system in your preferred
hosting environment that satisfies the [installation
requirements](requirements.md) for your expected usage level.
2016-07-28 01:38:02 +02:00
2017-10-28 02:46:31 +02:00
## Step 1: Download the latest release
2016-07-28 01:38:02 +02:00
2021-09-10 00:16:29 +02:00
Download and unpack [the latest server
release](https://download.zulip.com/server/zulip-server-latest.tar.gz)
(**Zulip Server {{ LATEST_RELEASE_VERSION }}**) with the following commands:
2016-07-28 01:38:02 +02:00
2021-08-20 07:09:04 +02:00
```bash
2017-08-10 02:36:13 +02:00
cd $(mktemp -d)
2021-08-26 04:14:59 +02:00
curl -fLO https://download.zulip.com/server/zulip-server-latest.tar.gz
2017-08-10 02:36:13 +02:00
tar -xf zulip-server-latest.tar.gz
2016-07-28 01:38:02 +02:00
```
2024-02-15 05:52:44 +01:00
To verify the download, see [the sha256sums of our release
tarballs](https://download.zulip.com/server/SHA256SUMS.txt).
2017-10-17 09:29:40 +02:00
2017-10-28 02:46:31 +02:00
## Step 2: Install Zulip
2024-02-15 05:52:44 +01:00
To set up Zulip with the most common configuration, run the installer as
follows:
2017-10-28 02:46:31 +02:00
2021-08-20 07:09:04 +02:00
```bash
2018-09-25 21:22:02 +02:00
sudo -s # If not already root
2017-10-28 02:46:31 +02:00
./zulip-server-*/scripts/setup/install --certbot \
2017-12-13 04:54:10 +01:00
--email=YOUR_EMAIL --hostname=YOUR_HOSTNAME
2016-07-28 01:38:02 +02:00
```
2024-02-15 21:35:03 +01:00
This takes a few minutes to run, as it installs Zulip's dependencies. It is
designed to be idempotent: if the script fails, once you've corrected the cause
of the failure, you can just rerun the script. For more information, see
[installer details ](deployment.md#zulip-installer-details ) and
[troubleshooting ](troubleshooting.md#troubleshooting-the-zulip-installer ).
2018-03-03 01:49:08 +01:00
2017-12-13 04:54:10 +01:00
#### Installer options
2024-02-15 05:52:44 +01:00
- `--email=it-team@example.com` : The email address for the **person or team who
maintains the Zulip installation**. Zulip users on your server will see this
as the contact email in automated emails, on help pages, on error pages, etc.
You can later configure a display name for your contact email with the
`ZULIP_ADMINISTRATOR` [setting][doc-settings].
2017-12-13 04:54:10 +01:00
2024-02-15 05:52:44 +01:00
- `--hostname=zulip.example.com` : The user-accessible domain name for this Zulip
server, i.e., what users will type in their web browser. This becomes
`EXTERNAL_HOST` in the Zulip [settings][doc-settings].
- `--certbot` : With this option, the Zulip installer automatically obtains an
SSL certificate for the server [using Certbot][doc-certbot], and configures a
cron job to renew the certificate automatically. If you prefer to acquire an
SSL certificate another way, it's easy to [provide it to
Zulip][doc-ssl-manual].
2017-12-13 04:54:10 +01:00
2021-08-20 21:45:39 +02:00
- `--self-signed-cert` : With this option, the Zulip installer
2021-08-20 21:53:28 +02:00
generates a self-signed SSL certificate for the server. This isn't
2018-01-24 02:54:23 +01:00
suitable for production use, but may be convenient for testing.
2024-02-15 05:52:44 +01:00
For advanced installer options, see our [deployment options][doc-deployment-options]
2021-04-18 04:01:20 +02:00
documentation.
2024-02-15 05:52:44 +01:00
:::{important}
If you are importing data, stop here and return to the import instructions for
[Slack][slack-import], [Mattermost][mattermost-import],
2024-05-02 13:58:38 +02:00
[Rocket.Chat][rocketchat-import], [Zulip Cloud][zulip-cloud-import], [a server backup][zulip-backups], or [another Zulip server][zulip-server-import].
2024-02-15 05:52:44 +01:00
:::
2022-02-24 00:17:21 +01:00
[doc-settings]: settings.md
2022-02-16 01:39:15 +01:00
[doc-certbot]: ssl-certificates.md#certbot-recommended
[doc-ssl-manual]: ssl-certificates.md#manual-install
[doc-deployment-options]: deployment.md#advanced-installer-options
2024-02-15 05:52:44 +01:00
[zulip-backups]: export-and-import.md#backups
[slack-import]: https://zulip.com/help/import-from-slack
[mattermost-import]: https://zulip.com/help/import-from-mattermost
[rocketchat-import]: https://zulip.com/help/import-from-rocketchat
[zulip-cloud-import]: export-and-import.md#import-into-a-new-zulip-server
[zulip-server-import]: export-and-import.md#import-into-a-new-zulip-server
2016-07-28 01:38:02 +02:00
2018-03-03 02:44:53 +01:00
## Step 3: Create a Zulip organization, and log in
2017-02-22 06:15:11 +01:00
2024-02-15 05:52:44 +01:00
When the installation process is complete, the install script prints a secure
one-time-use organization creation link. Open this link in your browser, and
follow the prompts to set up your organization and your own user account. Your
Zulip organization is ready to use!
2016-08-25 04:01:03 +02:00
2024-02-15 05:52:44 +01:00
:::{note}
You can generate a new organization creation link by running `manage.py
generate_realm_creation_link` on the server. See also our guide on running
[multiple organizations on the same server ](multiple-organizations.md ).
:::
2016-08-25 06:29:36 +02:00
2024-02-15 05:52:44 +01:00
## Getting started with Zulip
2018-03-03 01:10:51 +01:00
2018-03-03 02:59:10 +01:00
To really see Zulip in action, you'll need to get the people you work
together with using it with you.
2021-08-20 22:54:08 +02:00
2021-08-20 21:45:39 +02:00
- [Set up outgoing email ](email.md ) so Zulip can confirm new users'
2018-03-03 02:59:10 +01:00
email addresses and send notifications.
2021-08-20 21:45:39 +02:00
- Learn how to [get your organization started][realm-admin-docs] using
2018-03-03 02:59:10 +01:00
Zulip at its best.
2018-03-03 01:10:51 +01:00
2018-03-03 02:59:10 +01:00
Learning more:
2018-03-03 01:10:51 +01:00
2021-08-20 21:45:39 +02:00
- Subscribe to the [Zulip announcements email
2021-10-15 00:37:27 +02:00
list](https://groups.google.com/g/zulip-announce) for
2021-08-20 22:54:08 +02:00
server administrators. This extremely low-traffic list is for
important announcements, including [new
2021-10-15 00:37:27 +02:00
releases](../overview/release-lifecycle.md) and security issues.
2021-08-20 21:45:39 +02:00
- Follow [Zulip on Twitter ](https://twitter.com/zulip ).
- Learn how to [configure your Zulip server settings ](settings.md ).
2022-02-24 00:17:21 +01:00
- Learn about [Backups, export and import ](export-and-import.md )
2023-01-17 04:33:42 +01:00
and [upgrading ](upgrade.md ) a production Zulip
2021-08-20 22:54:08 +02:00
server.
2016-08-25 06:29:36 +02:00
2024-09-25 19:02:03 +02:00
[realm-admin-docs]: https://zulip.com/help/moving-to-zulip