2018-01-23 20:36:07 +01:00
|
|
|
```eval_rst
|
|
|
|
:orphan:
|
|
|
|
```
|
|
|
|
|
2017-05-24 22:36:15 +02:00
|
|
|
# Production Installation on Existing Ubuntu Server
|
|
|
|
|
|
|
|
Here are some tips for installing the latest release Zulip on a
|
|
|
|
production server running Ubuntu. The Zulip installation scripts
|
|
|
|
assume that it has carte blanche to overwrite your configuration files
|
|
|
|
in /etc, so we recommend against installing it on a server running
|
|
|
|
other nginx or django apps.
|
|
|
|
|
|
|
|
But if you do, here are some things you can do that may make it
|
|
|
|
possible to retain your existing site. However, this is *NOT*
|
|
|
|
recommended, and you may break your server. Make sure you have backups
|
|
|
|
and a provisioning script ready to go to wipe and restore your
|
|
|
|
existing services if (when) your server goes down.
|
|
|
|
|
|
|
|
These instructions are only for experts. If you're not an experiecned
|
|
|
|
Linux sysadmin, you will have a much better experience if you get a
|
|
|
|
dedicated VM to install Zulip on instead (or [use zulipchat.com](https://zulipchat.com).
|
|
|
|
|
2017-08-24 00:11:23 +02:00
|
|
|
### Nginx
|
2017-05-24 22:36:15 +02:00
|
|
|
|
|
|
|
Copy your existing nginx configuration to a backup and then merge the
|
|
|
|
one created by Zulip into it:
|
|
|
|
|
|
|
|
```shell
|
2017-08-24 00:10:35 +02:00
|
|
|
sudo cp /etc/nginx/nginx.conf /etc/nginx.conf.before-zulip-install
|
|
|
|
wget -O /tmp/nginx.conf.zulip \
|
|
|
|
https://raw.githubusercontent.com/zulip/zulip/master/puppet/zulip/files/nginx/nginx.conf
|
|
|
|
sudo meld /etc/nginx/nginx.conf /tmp/nginx.conf.zulip # be sure to merge to the right
|
2017-05-24 22:36:15 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
After the zulip installation completes, then you can overwrite (or
|
|
|
|
merge) your new nginx.conf with the installed one:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ sudo meld /tmp/nginx.conf.zulip /etc/nginx/nginx.conf # be sure to merge to the right
|
|
|
|
$ sudo service nginx restart
|
|
|
|
```
|
|
|
|
|
|
|
|
Zulip's puppet configuration will change the ownership of
|
|
|
|
`/var/log/nginx` so that the `zulip` user can access it. Depending on
|
|
|
|
your configuration, this may or may not cause problems.
|
|
|
|
|
2017-08-24 00:11:23 +02:00
|
|
|
### Puppet
|
2017-05-24 22:36:15 +02:00
|
|
|
|
|
|
|
If you have a puppet server running on your server, you will get an
|
|
|
|
error message about not being able to connect to the client during the
|
|
|
|
install process:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
puppet-agent[29873]: Could not request certificate: Failed to open TCP connection to puppet:8140
|
|
|
|
```
|
|
|
|
|
|
|
|
So you'll need to shutdown any puppet servers.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ sudo service puppet-agent stop
|
|
|
|
$ sudo service puppet stop
|
|
|
|
```
|
|
|
|
|
2017-08-24 00:11:23 +02:00
|
|
|
### Postgres
|
2017-05-24 22:36:15 +02:00
|
|
|
|
|
|
|
If you have an existing postgres database, note that Zulip will use
|
|
|
|
the default `main` as its database name; make sure you're not using
|
|
|
|
that.
|
|
|
|
|
2017-08-24 00:11:23 +02:00
|
|
|
### Memcached, redis, and rabbitmq
|
2017-05-24 22:36:15 +02:00
|
|
|
|
|
|
|
Zulip will, by default, configure these services for its use. The
|
|
|
|
configuration we use is pretty basic, but if you're using them for
|
|
|
|
something else, you'll want to make sure the configurations are
|
|
|
|
compatible.
|
|
|
|
|
2017-08-24 00:11:23 +02:00
|
|
|
### No uninstall process
|
2017-05-24 22:36:15 +02:00
|
|
|
|
|
|
|
We don't provide a convenient way to uninstall a Zulip server.
|
|
|
|
|
|
|
|
## No support, but contributions welcome!
|
|
|
|
|
|
|
|
Most of the limitations are things we'd accept a pull request to fix;
|
|
|
|
we welcome contributions to shrink this list of gotchas. Chat with us
|
2017-11-16 20:39:29 +01:00
|
|
|
in the [chat.zulip.org community](../contributing/chat-zulip-org.html) if you're
|
2017-05-24 22:36:15 +02:00
|
|
|
interested in helping!
|