kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
340 lines
14 KiB
340 lines
14 KiB
5 years ago
|
---
|
||
|
sidebar_navigation:
|
||
5 years ago
|
title: Packages
|
||
|
priority: 400
|
||
5 years ago
|
---
|
||
|
|
||
5 years ago
|
# Install OpenProject with DEB/RPM packages
|
||
5 years ago
|
|
||
5 years ago
|
The packaged installation of OpenProject is the recommended way to install and maintain OpenProject using DEB or RPM packages.
|
||
|
|
||
|
The package will:
|
||
|
|
||
|
- guide you through all the required steps
|
||
|
|
||
|
- install all the required libraries and dependencies
|
||
|
|
||
|
- install a local PostgreSQL database or allow you to connect to an existing PostgreSQL database
|
||
|
|
||
|
- allow you to install and configure an outer Apache web server (recommended)
|
||
|
|
||
|
- setup SSL/TLS encryption for the Apache server (optional)
|
||
|
|
||
|
- configure repositories (Git/SVN) (optional)
|
||
|
|
||
|
- configure email settings
|
||
|
|
||
|
The package is available for the following Linux distributions:
|
||
|
|
||
|
| Distribution (**64 bits only**) |
|
||
|
| ------------------------------- |
|
||
|
| CentOS/RHEL 7.x |
|
||
|
| Debian 9 Stretch |
|
||
|
| Debian 10 Stretch |
|
||
|
| Suse Linux Enterprise Server 12 |
|
||
|
| Ubuntu 16.04 Xenial Xerus |
|
||
|
| Ubuntu 18.04 Bionic Beaver |
|
||
|
|
||
|
Please ensure that you are running on a 64bit system before proceeding with the installation. You can check by running the `uname -i` command on the target server and verifying that it outputs `x86_64`:
|
||
|
|
||
|
```bash
|
||
|
$ uname -i
|
||
|
x86_64
|
||
|
```
|
||
|
|
||
|
Also, please note that the packaged installation works best when running on a dedicated server or virtual machine, as we cannot ensure that the components installed and configured by the OpenProject installer will work on systems that have been already customized.
|
||
|
|
||
|
## Ubuntu 18.04
|
||
|
|
||
|
Import the PGP key used to sign our packages:
|
||
|
|
||
|
```bash
|
||
|
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
|
||
|
```
|
||
|
|
||
|
Add the OpenProject package source:
|
||
|
|
||
|
```bash
|
||
|
sudo wget -O /etc/apt/sources.list.d/openproject.list \
|
||
|
https://dl.packager.io/srv/opf/openproject/stable/10/installer/ubuntu/18.04.repo
|
||
|
```
|
||
|
|
||
|
Download the OpenProject package:
|
||
|
|
||
|
```bash
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install openproject
|
||
|
```
|
||
|
|
||
|
Then finish the installation by reading the [*Initial configuration*][initial-config] section.
|
||
|
|
||
|
## Ubuntu 16.04
|
||
|
|
||
|
Import the PGP key used to sign our packages:
|
||
|
|
||
|
```bash
|
||
|
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
|
||
|
```
|
||
|
|
||
|
Add the OpenProject package source:
|
||
|
|
||
|
```bash
|
||
|
sudo wget -O /etc/apt/sources.list.d/openproject.list \
|
||
|
https://dl.packager.io/srv/opf/openproject/stable/10/installer/ubuntu/16.04.repo
|
||
|
```
|
||
|
|
||
|
Download the OpenProject package:
|
||
|
|
||
|
```bash
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install openproject
|
||
|
```
|
||
|
|
||
|
Then finish the installation by reading the [*Initial configuration*][initial-config] section.
|
||
|
|
||
|
## Debian 10
|
||
|
|
||
|
Import the PGP key used to sign our packages:
|
||
|
|
||
|
```bash
|
||
|
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
|
||
|
```
|
||
|
|
||
|
Add the OpenProject package source:
|
||
|
|
||
|
```bash
|
||
|
sudo wget -O /etc/apt/sources.list.d/openproject.list \
|
||
|
https://dl.packager.io/srv/opf/openproject/stable/10/installer/debian/10.repo
|
||
|
```
|
||
|
|
||
|
Download the OpenProject package:
|
||
|
|
||
|
```bash
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install openproject
|
||
|
```
|
||
|
|
||
|
Then finish the installation by reading the [*Initial configuration*][initial-config] section.
|
||
|
|
||
|
## Debian 9
|
||
|
|
||
|
Import the PGP key used to sign our packages:
|
||
|
|
||
|
```bash
|
||
|
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
|
||
|
```
|
||
|
|
||
|
Add the OpenProject package source:
|
||
|
|
||
|
```bash
|
||
|
sudo wget -O /etc/apt/sources.list.d/openproject.list \
|
||
|
https://dl.packager.io/srv/opf/openproject/stable/10/installer/debian/9.repo
|
||
|
```
|
||
|
|
||
|
Download the OpenProject package:
|
||
|
|
||
|
```bash
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install openproject
|
||
|
```
|
||
|
|
||
|
Then finish the installation by reading the [*Initial configuration*][initial-config] section.
|
||
|
|
||
|
## CentOS 7 / RHEL 7
|
||
|
|
||
|
Add the OpenProject package source:
|
||
|
|
||
|
```bash
|
||
|
sudo wget -O /etc/yum.repos.d/openproject.repo \
|
||
|
https://dl.packager.io/srv/opf/openproject/stable/10/installer/el/7.repo
|
||
|
```
|
||
|
|
||
|
Download the OpenProject package:
|
||
|
|
||
|
```bash
|
||
|
sudo yum install openproject
|
||
|
```
|
||
|
|
||
|
Then finish the installation by reading the [*Initial configuration*][initial-config] section.
|
||
|
|
||
|
## SLES 12
|
||
|
|
||
|
Add the OpenProject package source:
|
||
|
|
||
|
```bash
|
||
|
wget -O /etc/zypp/repos.d/openproject.repo \
|
||
|
https://dl.packager.io/srv/opf/openproject/stable/10/installer/sles/12.repo
|
||
|
```
|
||
|
|
||
|
Download the OpenProject package:
|
||
|
|
||
|
```bash
|
||
|
sudo zypper install openproject
|
||
|
```
|
||
|
|
||
|
Then finish the installation by reading the [*Initial configuration*][initial-config] section.
|
||
|
|
||
|
[initial-config]: #initial-configuration
|
||
|
|
||
|
# Initial Configuration
|
||
|
|
||
|
After you have successfully installed the OpenProject package, you can now perform the initial configuration of OpenProject, using the wizard that ships with the OpenProject package.
|
||
5 years ago
|
|
||
|
## Prerequisites
|
||
|
|
||
|
- If you wish to connect to an existing database server instead of setting up a local database server, please make sure to have your database hostname, port, username and password ready. The database username used to connect to the existing database must have the CREATE DATABASE privilege.
|
||
|
|
||
|
- If you want to enable HTTPS, then you will need to provide the path (on the server) to your certificate file, private key file, and CA bundle file.
|
||
|
|
||
|
## Step 0: start the wizard
|
||
|
|
||
5 years ago
|
To start the configuration wizard, please run the following command with `sudo`, or as root:
|
||
5 years ago
|
|
||
5 years ago
|
```bash
|
||
5 years ago
|
sudo openproject configure
|
||
|
```
|
||
|
|
||
|
**Notes:**
|
||
|
|
||
|
* In case you mistype or need to correct a configuratin option, you can always safely cancel the configuration wizard by pressing `CTRL+C` and restart it by running `sudo openproject reconfigure`.
|
||
|
|
||
|
* Every time you will run the OpenProject wizard, your choices will be persisted in a configuration file at `/etc/openproject/installer.dat` and subsequent executions of `sudo openproject configure` will re-use these values, only showing you wizard steps for options you have not yet selected an option for.
|
||
|
|
||
|
* In case you want to run through all wizard options again, you can do so by executing `sudo openproject reconfigure`. This will show all wizard steps, but again keep values you entered before showing in the input fields. You can skip dialogs you do not want to change simply by confirming them with `ENTER`.
|
||
|
|
||
|
## Step 1: PostgreSQL database configuration
|
||
|
|
||
|
The first dialog in the wizard allows you to choose an option for the PostgreSQL database connection:
|
||
|
|
||
|
![01-postgres](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/01-postgres.png?raw=true)
|
||
|
|
||
|
The dialog allows you to choose from three options:
|
||
|
|
||
5 years ago
|
### Install a new PostgreSQL server and database locally (default)
|
||
5 years ago
|
|
||
5 years ago
|
Choose this option if you want OpenProject to set up and configure a local database server manually. This is the best choice if you are unfamiliar with adminstering databases, or do not have a separate PostgreSQL database server installed that you want to connect to.
|
||
5 years ago
|
|
||
5 years ago
|
### Use an existing PostgreSQL database
|
||
5 years ago
|
|
||
5 years ago
|
Choose this option if you have a PostgreSQL database server installed either on the same host as the OpenProject package is being installed on, or on another server you can connect to from this machine.
|
||
5 years ago
|
|
||
5 years ago
|
The wizard will show you multiple additional steps in this case to enter the hostname, username & password as well as the database name for the PostgreSQL database.
|
||
5 years ago
|
|
||
5 years ago
|
### Skip (not recommended)
|
||
5 years ago
|
|
||
5 years ago
|
The wizard will not try to connect to any database. You will have to specify a database manually thorugh the `DATABASE_URL` environment variable. If you choose skip and did not set a `DATABASE_URL`, the configuration process will fail.
|
||
5 years ago
|
|
||
5 years ago
|
You can set this `DATABASE_URL` parameter yourself to a PostgreSQL database URL.
|
||
5 years ago
|
|
||
5 years ago
|
```bash
|
||
5 years ago
|
sudo openproject config:set DATABASE_URL="postgresql://[user[:password]@][host][:port][/dbname][?param1=value1&...]
|
||
|
```
|
||
|
|
||
|
## Step 2: Apache2 web server
|
||
|
|
||
|
OpenProject comes with an internal ruby application server, but this server only listens on a local interface. To receive connections from the outside world, it needs a web server that will act as a proxy to forward incoming connections to the OpenProject application server.
|
||
|
|
||
|
This wizard step allows you to auto-install an Apache2 web server to function as that proxy.
|
||
|
|
||
|
![02a-apache](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/02a-apache.png?raw=true)
|
||
|
|
||
|
The available options are:
|
||
|
|
||
5 years ago
|
### **Install Apache2 web server** (default)
|
||
5 years ago
|
|
||
5 years ago
|
We recommend that you let OpenProject install and configure the outer web server, in which case we will install an Apache2 web server with a VirtualHost listening to the domain name you specify, optionally providing SSL/TLS termination.
|
||
5 years ago
|
|
||
5 years ago
|
In case you select to auto-install Apache2, multiple dialogs will request the parameters for setting it up:
|
||
5 years ago
|
|
||
|
**Domain name**
|
||
|
|
||
|
Enter the fully qualified domain where your OpenProject installation will be reached at. This will become the `ServerName` of your apache VirtualHost and is also used to generate full links from OpenProject, such as in emails.
|
||
|
|
||
|
![02b-hostname](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/02b-hostname.png?raw=true)
|
||
|
|
||
|
**Server path prefix**
|
||
|
|
||
|
If you wish to install OpenProject under a server path prefix, such as `yourdomain.example.com/openproject`, please specify that prefix here with a leading slash. For example: `/openproject`. If OpenProject should respond to `http(s)://yourdomain.example.com` as specified in the previous dialog, simply leave this dialog empty and confirm by pressing `ENTER`.
|
||
|
|
||
|
![02c-prefix](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/02c-prefix.png?raw=true)
|
||
|
|
||
|
**SSL/TLS configuration**
|
||
|
|
||
|
OpenProject can configure Apache to support HTTPS (SSL/TLS). If you have SSL certificates and want to use SSL/TLS (recommended), select **Yes**.
|
||
|
|
||
|
In that case, you will be shown three additional dialogs to enter the certificate details:
|
||
|
|
||
|
1. The absolute SSL certificate path
|
||
|
2. The absolute SSL private key path
|
||
|
3. The path to the Certificate Authority bundle for the certificate (optional, leave empty unless needed)
|
||
|
|
||
|
![02d-ssl](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/02d-ssl.png?raw=true)
|
||
|
|
||
5 years ago
|
|
||
|
### **Skip** (not recommended)
|
||
|
|
||
|
The installer will not set up an external web server for accessing. You will need to either install and set up a web server such as Apache2 or Nginx to function as the web server forwarding to our internal server listeing at `localhost:6000` by proxying.
|
||
|
|
||
|
Only choose this option if you have a local Apache2 installed that the OpenProject package may not control, or need to use a different web server such as Nginx. Please note that not all functionality (especially regarding Repositories) are supported on Nginx.
|
||
|
|
||
|
When installing with an existing Apache2, you can use our [installation wizard templates](https://github.com/pkgr/addon-apache2/tree/master/conf) for guidance on how to set up the integration. [For a minimal nginx config, please see this gist](https://gist.github.com/seLain/375d16ccd4542e3727e97a7478187d3a) as as starting point.
|
||
|
|
||
5 years ago
|
## Step 3: SVN/Git integration server
|
||
|
|
||
|
If you have selected to auto-install an Apache2 web server, you will be asked whether you want to install Git and Subversion repository support. In case you do not need it or when in doubt, choose **Skip** for both options.
|
||
|
|
||
|
For more information, [see our help on repositories](https://www.openproject.org/help/repository/)
|
||
|
|
||
|
![03-repos](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/03-repos.png?raw=true)
|
||
|
|
||
|
## Step 4: Outgoing email configuration
|
||
|
|
||
|
OpenProject requires a setup for sending outgoing emails for notifications, such as updates on work packages, password resets, or other notifications you and your users receive.
|
||
|
|
||
|
![04-mail](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/04-mail.png?raw=true)
|
||
|
|
||
|
The wizard supports the following options:
|
||
|
|
||
5 years ago
|
### **Sendmail** (default)
|
||
5 years ago
|
|
||
5 years ago
|
Uses a local sendmail installation or sets up a local-only postfix MTA in case you do not have sendmail.
|
||
5 years ago
|
|
||
5 years ago
|
Easiest setup as it does not require an SMTP configuration, but your Mails may not be delivered consistently depending on your mail accounts or firewall setup.
|
||
5 years ago
|
|
||
5 years ago
|
### **SMTP** (recommended for production systems)
|
||
5 years ago
|
|
||
5 years ago
|
Allows you to connect to a SMTP host through authentication types `NONE`, `PLAIN,` `LOGIN`, or `CRAM-MD5`. Use this if you have a dedicated mail account to use for delivering OpenProject mail, or when sendmail does not work due to your local firewall / mail relay setup.
|
||
5 years ago
|
|
||
5 years ago
|
### **Skip** (not recommended)
|
||
5 years ago
|
|
||
5 years ago
|
Does not set up mail configuration. You can configure the mail setup in OpenProject by visiting `openproject.example.com/settings?tab=notifications` in your installation. For more information, [visit our help page on this topic](https://www.openproject.org/help/system-settings/email-notification-settings/).
|
||
5 years ago
|
|
||
|
## Step 5: Administrator email
|
||
|
|
||
|
The wizard will ask you for an administrative email address so that it can create the administrator account with that email for the initial login. Enter your email address to have it tied to the admin account.
|
||
|
|
||
|
![05-admin](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/05-admin.png?raw=true)
|
||
|
|
||
5 years ago
|
## Step 6: Memcached server
|
||
5 years ago
|
|
||
5 years ago
|
OpenProject heavily relies on caching, which is why the wizard suggests you to install a local memcached server the OpenProject instances can connect to. You should always set this to `install` unless you have a reason to configure another caching mechanism - for example when configuring multiple shared instances of OpenProject.
|
||
5 years ago
|
|
||
|
![06-cache](https://github.com/opf/openproject/blob/dev/docs/installation/packaged/screenshots/06-cache.png?raw=true)
|
||
|
|
||
5 years ago
|
## Result
|
||
|
|
||
5 years ago
|
With this last step confirmed, the OpenProject wizard will complete, and apply all the configuration options that you have just selected. This might take a few minutes depending on your machine and internet connection, as OpenProject might need to install additional packages (such as the web server, database) depending on your selections.
|
||
|
|
||
|
In case this process crashes or exits with an obvious error, please keep the output and send your configuration from`/etc/openproject/installer.dat` (removing any passwords from it) to us at support@openproject.com , or [reach out to the community forums](https://community.openproject.com/projects/openproject/forums).
|
||
|
|
||
|
When this process completes, it will have started the internal application and web servers, the background jobs to process work-intensive jobs, and set up the connection to the database.
|
||
|
|
||
|
You should be able to reach the OpenProject instance by visiting your installation at `http://<openproject.example.com>/<server prefix>`.
|
||
|
|
||
5 years ago
|
You can then log in using the default user/password combination:
|
||
5 years ago
|
|
||
5 years ago
|
* username = `admin`
|
||
|
* password = `admin`
|
||
5 years ago
|
|
||
5 years ago
|
You will be asked to change this password immediately after the first login.
|