pull/7908/head
Cyril Rohr 5 years ago
parent 437dec607f
commit 9d1786ab89
  1. 9
      help/installation-and-operations/docker/README.md
  2. 14
      help/installation-and-operations/installation/README.md
  3. 2
      help/installation-and-operations/installation/docker.md
  4. 0
      help/installation-and-operations/installation/docker/backup.md
  5. 0
      help/installation-and-operations/installation/docker/upgrading.md
  6. 180
      help/installation-and-operations/installation/packaged.md
  7. 0
      help/installation-and-operations/installation/packaged/screenshots/01-postgres.png
  8. 0
      help/installation-and-operations/installation/packaged/screenshots/02a-apache.png
  9. 0
      help/installation-and-operations/installation/packaged/screenshots/02b-hostname.png
  10. 0
      help/installation-and-operations/installation/packaged/screenshots/02c-prefix.png
  11. 0
      help/installation-and-operations/installation/packaged/screenshots/02d-ssl.png
  12. 0
      help/installation-and-operations/installation/packaged/screenshots/03-repos.png
  13. 0
      help/installation-and-operations/installation/packaged/screenshots/04-mail.png
  14. 0
      help/installation-and-operations/installation/packaged/screenshots/05-admin.png
  15. 0
      help/installation-and-operations/installation/packaged/screenshots/06-cache.png
  16. 0
      help/installation-and-operations/installation/packaged/upgrading.md
  17. 0
      help/installation-and-operations/misc/docker-postgresql-migration.md
  18. 0
      help/installation-and-operations/misc/migration.md
  19. 0
      help/installation-and-operations/misc/packaged-postgresql-migration.md
  20. 25
      help/installation-and-operations/operation/backing-up.md
  21. 55
      help/installation-and-operations/operation/restoring.md
  22. 0
      help/installation-and-operations/operation/stuff-to-move.md
  23. 14
      help/installation-and-operations/packaged/README.md
  24. 183
      help/installation-and-operations/packaged/installation.md
  25. 170
      help/installation-and-operations/packaged/upgrade-guide-legacy.md
  26. 68
      help/installation-and-operations/upgrading-postgresql.md

@ -1,9 +0,0 @@
---
sidebar_navigation:
title: Docker installation
priority: 300
---
# Docker installation
TODO

@ -0,0 +1,14 @@
---
sidebar_navigation:
title: Installation
priority: 400
---
# Installing OpenProject
OpenProject can be setup in two different ways:
| ----------- | :---------- |
| [Installation with DEB/RPM packages](./packaged) | This is the recommended way to install OpenProject |
| [Installation with docker](./docker) | This method of installation will undergo some changes soon and is currently not recommended |

@ -1,6 +1,6 @@
---
sidebar_navigation:
title: Installation guide
title: Docker
priority: 300
---

@ -1,12 +1,184 @@
---
sidebar_navigation:
title: Initial configuration
priority: 100
title: Packages
priority: 400
---
# Initial configuration of your packaged installation
# Install OpenProject with DEB/RPM packages
After you have successfully installed the OpenProject package ([see the installation guide](../installation)), you can now perform the initial configuration of OpenProject, using the wizard that ships with the OpenProject package.
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.
## Prerequisites

@ -24,25 +24,28 @@ of the current OpenProject installation. This tool will create a backup of
all parts mentioned above. The backup tool is used by executing the following
command:
```
```bash
sudo openproject run backup
```
The command will create backup files in the following location on your system:
```
```bash
/var/db/openproject/backup
```
The content of that directory should look very similar to the following (depending on your database engine, you will see either a `mysql-dump-<date>.sql.gz` or a `postgresql-dump-<pgdump>` file).
```
root@test-packager-backup:/opt/openproject# ls -l /var/db/openproject/backup/
total 24
-rw-r----- 1 openproject openproject 117 Apr 8 09:55 attachments-20150408095521.tar.gz
-rw-r----- 1 openproject openproject 667 Apr 8 09:55 conf-20150408095521.tar.gz
-rw-r----- 1 openproject openproject 8298 Apr 8 09:55 postgres-dump-20150408095521.sql.gz
-rw-r----- 1 openproject openproject 116 Apr 8 09:55 svn-repositories-20150408095521.tar.gz
The content of that directory should look very similar to the following (depending on your database engine, you will see either a `mysql-dump-<date>.sql.gz` or a `postgresql-dump-<date>.pgdump` file).
```bash
root@ip-10-0-0-228:/home/admin# ls -al /var/db/openproject/backup/
total 1680
drwxr-xr-x 2 openproject openproject 4096 Nov 19 21:00 .
drwxr-xr-x 6 openproject openproject 4096 Nov 19 21:00 ..
-rw-r----- 1 openproject openproject 1361994 Nov 19 21:00 attachments-20191119210038.tar.gz
-rw-r----- 1 openproject openproject 1060 Nov 19 21:00 conf-20191119210038.tar.gz
-rw-r----- 1 openproject openproject 126 Nov 19 21:00 git-repositories-20191119210038.tar.gz
-rw-r----- 1 openproject openproject 332170 Nov 19 21:00 postgresql-dump-20191119210038.pgdump
-rw-r----- 1 openproject openproject 112 Nov 19 21:00 svn-repositories-20191119210038.tar.gz
```
You should then copy those dump files to a secure location, for instance an S3 bucket or some sort of backup server.

@ -12,39 +12,51 @@ Assuming you have a backup of all the OpenProject files at hand (see the [Backin
As a reference, we will assume you have the following dumps on your server, located in `/var/db/openproject/backup`:
```
-rw-r----- 1 openproject openproject 117 Apr 8 09:55 attachments-20150408095521.tar.gz
-rw-r----- 1 openproject openproject 667 Apr 8 09:55 conf-20150408095521.tar.gz
-rw-r----- 1 openproject openproject 8298 Apr 8 09:55 postgres-dump-20150408095521.sql.gz
-rw-r----- 1 openproject openproject 116 Apr 8 09:55 svn-repositories-20150408095521.tar.gz
```bash
root@ip-10-0-0-228:/home/admin# ls -al /var/db/openproject/backup/
total 1680
drwxr-xr-x 2 openproject openproject 4096 Nov 19 21:00 .
drwxr-xr-x 6 openproject openproject 4096 Nov 19 21:00 ..
-rw-r----- 1 openproject openproject 1361994 Nov 19 21:00 attachments-20191119210038.tar.gz
-rw-r----- 1 openproject openproject 1060 Nov 19 21:00 conf-20191119210038.tar.gz
-rw-r----- 1 openproject openproject 126 Nov 19 21:00 git-repositories-20191119210038.tar.gz
-rw-r----- 1 openproject openproject 332170 Nov 19 21:00 postgresql-dump-20191119210038.pgdump
-rw-r----- 1 openproject openproject 112 Nov 19 21:00 svn-repositories-20191119210038.tar.gz
```
### Stop the processes
First, it is a good idea to stop the OpenProject instance:
```
```bash
sudo service openproject stop
```
### Restoring assets
Untar the attachments to their destination:
Go into the backup directory:
```
tar xzf /var/db/openproject/backup/attachments-20150408095521.tar.gz -C /var/db/openproject/files/
```bash
cd /var/db/openproject/backup
```
Untar the configuration to its destination:
Untar the attachments to their destination:
```bash
tar xzf attachments-20191119210038.tar.gz -C /var/db/openproject/files
```
tar xzf /var/db/openproject/backup/conf-20150408095521.tar.gz -C /etc/openproject/
Untar the configuration files to their destination:
```bash
tar xzf conf-20191119210038.tar.gz -C /etc/openproject/conf.d/
```
Untar the repositories to their destination:
```
tar xzf /var/db/openproject/backup/svn-repositories-20150408095521.tar.gz -C /var/db/openproject/repositories
```bash
tar xzf git-repositories-20191119210038.tar.gz -C /var/db/openproject/git
tar xzf svn-repositories-20191119210038.tar.gz -C /var/db/openproject/svn
```
### Restoring the database
@ -55,15 +67,24 @@ installation. This setting can be seen by running:
First, get the necessary details about your database:
```
```bash
openproject config:get DATABASE_URL
#=> e.g.: postgres://dbusername:dppassword@dbhost:dbport/dbname
#=> e.g.: postgres://<dbusername>:<dbpassword>@<dbhost>:<dbport>/<dbname>
```
Then, to restore the PostgreSQL dump please use the `psql` command utilities:
Then, to restore the PostgreSQL dump please use the `pg_restore` command utility:
```
zcat /var/db/openproject/backup/postgres-dump-20150408095521.sql.gz | psql -h <dbhost> -u <dbusername> -W <dbname>
pg_restore -h <dbhost> -p <dbport> -U <dbusername> -d <dbname> postgresql-dump-20191119210038.pgdump
```
Example:
```bash
$ openproject config:get DATABASE_URL
postgres://openproject:L0BuQvlagjmxdOl6785kqwsKnfCEx1dv@127.0.0.1:45432/openproject
$ pg_restore -h 127.0.0.1 -p 45432 -U openproject -d openproject postgresql-dump-20191119210038.pgdump
```
### Restart the OpenProject processes

@ -1,14 +0,0 @@
---
sidebar_navigation:
title: Packages
priority: 400
---
# Packaged installation (DEB/RPM)
The packaged installation is the recommended way to install OpenProject. Follow the instructions detailed in the following guides to get OpenProject running on your own server:
| Main Topics | Description |
| ----------- | :---------- |
| [Installation](./installation) | How to install OpenProject from DEB/RPM packages |
| [Initial configuration](./configuration) | How to perform the initial configuration of OpenProject |

@ -1,183 +0,0 @@
---
sidebar_navigation:
title: Installation
priority: 200
---
# Installation of OpenProject with DEB/RPM packages
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**) | Identifier | init system |
| ------------------------------- | ------------ | ----------- |
| CentOS/RHEL 7.x | centos-7 | systemd |
| Debian 9 Stretch | debian-9 | systemd |
| Debian 10 Stretch | debian-10 | systemd |
| Suse Linux Enterprise Server 12 | sles-12 | sysvinit |
| Ubuntu 16.04 Xenial Xerus | ubuntu-16.04 | upstart |
| Ubuntu 18.04 Bionic Beaver | ubuntu-18.04 | systemd |
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`:
```
$ 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.
## Installation
The first step of the installation is to add the OpenProject package source to the package manager of your distribution (`apt`, `yum`, or `zypper`).
### Ubuntu 18.04
Import the PGP key used to sign our packages:
```
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
```
Add the OpenProject package source:
```
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:
```
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:
```
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
```
Add the OpenProject package source:
```
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:
```
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:
```
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
```
Add the OpenProject package source:
```
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:
```
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:
```
wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
```
Add the OpenProject package source:
```
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:
```
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:
```
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:
```
sudo yum install openproject
```
Then finish the installation by reading the [*Initial configuration*][initial-config] section.
### SLES 12
Add the OpenProject package source:
```
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:
```
sudo zypper install openproject
```
Then finish the installation by reading the [*Initial configuration*][initial-config] section.
[initial-config]: ../configuration

@ -1,170 +0,0 @@
# Upgrade your pre-5.0 OpenProject installation (DEB/RPM Packages)
Starting with OpenProject 4.1 stable releases will have their own branch on github. According to this the OpenProject release 6.0 is tracked via the stable/6 branch. We provide a stable branch `stable/<VERSION>` to contain all minor upgrades to OpenProject <VERSION>.x.
For OpenProject 4.2, two packages existed: The OpenProject Core and Community Edition.
Starting with OpenProject 5.0, both editions have been integrated into the single OpenProject package, which now contains a standard set of the most-used plugins previously contained in the Community Edition.
This guide contains two guides:
* The upgrade guide for OpenProject Core 4.2. to OpenProject 6.0
* The migration guide to OpenProject 6.0 from OpenProject Community Edition 4.2.
Please jump directly to the part of this guide depending on your OpenProject version (Core Edition or Community Edition) and operating system.
## Upgrading from OpenProject Core Edition 4.2
### Preliminary step: Remove the sources.list that defines the OpenProject Core Edition 4.2
To avoid trying to update the deprecated 4.2 package, remove the following entry:
sudo rm -i /etc/apt/sources.list.d/openproject.list
### Debian 7.6 Wheezy 64bits server
echo "deb https://deb.packager.io/gh/opf/openproject wheezy stable/6" | sudo tee /etc/apt/sources.list.d/openproject.list
sudo apt-get update
sudo apt-get install openproject
sudo openproject configure
### Ubuntu 14.04 Trusty 64bits server
echo "deb https://deb.packager.io/gh/opf/openproject trusty stable/6" | sudo tee /etc/apt/sources.list.d/openproject.list
sudo apt-get update
sudo apt-get install openproject
sudo openproject configure
### Fedora 20 64bits server
echo "[openproject]
name=Repository for opf/openproject application.
baseurl=https://rpm.packager.io/gh/opf/openproject/fedora20/stable/6
enabled=1" | sudo tee /etc/yum.repos.d/openproject.repo
sudo yum install openproject
sudo openproject configure
### CentOS / RHEL 6 64 bits server
echo "[openproject]
name=Repository for opf/openproject application.
baseurl=https://rpm.packager.io/gh/opf/openproject/centos6/stable/6
enabled=1" | sudo tee /etc/yum.repos.d/openproject.repo
sudo yum install openproject
sudo openproject configure
### SUSE Linux Enterprise Server 12
sudo zypper addrepo "https://rpm.packager.io/gh/opf/openproject/sles12/stable/6" "openproject"
sudo zypper install openproject
sudo openproject configure
## Migrating from OpenProject Community Edition 4.2
The `openproject-ce` package no longer exists, but you can migrate to the new OpenProject package, which contains all functionality that was previously contained in the Community Edition.
The following steps were tested on Ubuntu and Debian machines with OpenProject Community Edition 4.2 installed. There may be variations for other distributions, please let us know If you can provide additional information to the migration path.
### Step 1: Backup existing installation
Before performing the migration, please backup your existing installation. While we will continue to use it and database migrations should run smoothly, please keep a backup at hand.
To backup attachments, database and repository, use the following command:
sudo openproject-ce run backup
### Step 2: Shut down openproject-ce instance
To avoid any further changes to the application, stop the web and worker processes:
sudo openproject-ce scale web=0 worker=0
### Step 3: Confirm database connection details
If you used autoinstall, the database name and database user name should equal `openproject_ce`. You can confirm this by running:
sudo openproject-ce config:get DATABASE_URL
Which should output something of the form
mysql2://<username>:<password>@127.0.0.1:3306/<dbname>
If the URI contains `openproject_ce` as the username and database name as the example above, we can simply continue.
Otherwise, note user-, database name and password just to be sure.
### Step 4: Remove the openproject-ce package
Remove the `openproject-ce` package from your system. For Debian/Ubuntu, run:
sudo apt-get remove openproject-ce
### Step 5: Remove the sources.list that defines the Community Edition package
To avoid installing the deprecated 4.2 package, remove the following entry:
sudo rm -i /etc/apt/sources.list.d/pkgr-openproject-community.list
### Step 6: Move the existing application and configuration files
As the OpenProject 6.0 package is identitical to the core in regards to paths, you'll need to reference the configuration and application (e.g., attachments, SVN repositories) files to the path that is expected from the new package.
# Move openproject-ce configuration
sudo mv /etc/openproject-ce /etc/openproject
For repositories, there are references in the database to the old `/var/db/openproject-ce/svn/<repository>` locations, so we suggest to symlink them instead:
# Symlink existing attachments and
sudo ln -s /var/db/openproject-ce /var/db/openproject
### Step 7: Disable the Community Edition Apache2 configuration
As a final step, disable the `openproject-ce` configuration.
sudo a2dissite openproject-ce
Optionally, remove the disabled site. The following path applies to Debian/Ubuntu.
sudo rm -i /etc/apache2/sites-available/openproject-ce.conf
Note:
* For RedHat, the path should be changed to `/etc/httpd/conf.d/openproject-ce.conf`.
* For SLES, the path should be changed to `/etc/apache2/vhosts.d/openproject-ce.conf`.
### Step 8: Install the OpenProject 6.0 package and select database
The rest of the installation is mostly identical to the installation guide of the OpenProject 5.0 package:
https://www.openproject.org/open-source/packaged-installation/packaged-installation-guide/
Add the package source to your package manager, update the sources, and install the `openproject` package. (See the installation guide linked above for the detailed steps for the various distributions).
**Important:** Instead of running `openproject configure`, run `openproject reconfigure`, which will lead you through the complete wizard.
In the first step *mysql/autoinstall*, select the **reuse** option (Use an existing database).
![](https://dl.dropboxusercontent.com/u/270758/op/mysql-reuse.png)
Press OK for the following steps, which will simply take the existing values from your old configuration
* MySQL IP or hostname
* MySQL port
In the dialog `mysql/username`, enter `openproject_ce` if the Database URI from Step 4 contained it. If you chose a different user name in the original CE installation, it should already be set to this value.
![](https://dl.dropboxusercontent.com/u/270758/op/mysql-username.png)
In the dialog `mysql/password`, **leave the password empty**. It will use the value from your original installation. You can optionally enter the password you retrieved from the database URI from Step 4, but that should be identical.
![](https://dl.dropboxusercontent.com/u/270758/op/mysql-password.png)
And again, in the `mysql/db_name` step, enter `openproject_ce` if the Database URI from Step 4 contained it. If you chose a different database name in the original CE installation, it should already be set to this value.
The other installation steps (mysql/db_source_host, mysql/ssl) may again be skipped by pressing OK, as they should still contain the old values from the Community Edition.
There will be other new steps in the installation wizard for which we will provide additional information in the packager installation guide.
Once the wizard has completed, the OpenProject instance should be updated to 6.0.x while re-using your existing database.
**Note:** This last step is a workaround for the package upgrading process. We are working on making this step optional.
The workaround is necessary since since the package appname changed from `openproject-ce` to `openproject`, and the installer wizard automatically sets the database to the app name when selecting an automatic installation of MySQL. Instead, the updater should respect an existing database (user-) name in its configuration.

@ -1,68 +0,0 @@
## OpenProject PostgreSQL migration guide to 9.6
This guide will lead you to the steps of upgrading your system PostgreSQL version to 9.6.
OpenProject 7.4.0 requires PostgreSQL 9.5+, so we're recommending to install to 9.6 directly.
If you're upgrading to 7.4.0 without a 9.5+ database, your upgrade process will be terminated with a 'Database incompatibility warning'. You should not
Since Ubuntu 14.04 (still supported by OpenProject) is still running on PostgreSQL 9.3., we're showing the
upgrade process for this distribution. Debian oldstable also uses PostgreSQL 9.4. as well.
### Preparations for the upgrade
Stop the current OpenProject workers
```bash
service openproject stop
```
### Install the newer PostgreSQL version
For Ubuntu 14.04:
```bash
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6
```
For other versions of Ubuntu, see this answer on AskUbuntu:
https://askubuntu.com/questions/831292
Or check the download for repositories from PostgreSQL:
https://www.postgresql.org/download/
### Upgrade of PostgreSQL
Stop the old cluster:
```bash
pg_dropcluster 9.6 main --stop
```
Upgrade the cluster to 9.6
```bash
pg_upgradecluster -v 9.6 9.3 main
```
Remove the old cluster
```bash
pg_dropcluster 9.3 main
```
Lastly, remove the ubuntu-provided version of 9.3:
```bash
apt-get remove postgres postgresql-9.3
```
### Upgrade OpenProject
You can now continue with the regular upgrading guide as detailed on these pages:
[https://www.openproject.org/operations/upgrading/](https://www.openproject.org/operations/upgrading/)
Loading…
Cancel
Save