How to install Openproject on Ubuntu 20.4.1
To install Openproject on Ubuntu 20.4.1
Introduction:
OpenProject is an open-source web-based project management system that is used for team collaboration which is published under the GNU General Public License Version and is developed by an active open-source community.
Installation process:
Run lsb_release command to check the installed version of OS as follows.
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
Download the open project key and add it to the system.
root@linuxhelp:~# wget -qO- https://dl.packager.io/srv/opf/openproject/key | sudo apt-key add -
OK
Download the Openproject repository for Ubuntu 18.04 in the '/etc/apt/sources.list.d' directory.
root@linuxhelp:~# wget -O /etc/apt/sources.list.d/openproject.list \ https://dl.packager.io/srv/opf/openproject/stable/11/installer/ubuntu/20.04.repo
--2020-12-07 14:00:48-- https://dl.packager.io/srv/opf/openproject/stable/11/installer/ubuntu/20.04.repo
Resolving dl.packager.io (dl.packager.io)... 178.63.71.248
Connecting to dl.packager.io (dl.packager.io)|178.63.71.248|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘/etc/apt/sources.list.d/openproject.list’
/etc/apt/sources.list.d/openproj [ <=> ] 124 --.-KB/s in 0s
2020-12-07 14:00:52 (10.6 MB/s) - ‘/etc/apt/sources.list.d/openproject.list’ saved [124]
Update the Ubuntu repository by using the following command.
root@linuxhelp:~# apt update
Ign:1 https://dl.packager.io/srv/deb/opf/openproject/stable/11/ubuntu 20.04 InRelease
Get:2 https://dl.packager.io/srv/deb/opf/openproject/stable/11/ubuntu 20.04 Release
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
.
.
.
Get:9 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [56.6 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [691 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [385 kB]
………………………………………………………………………………….
……………………………………………………………………………………
Install open project using the apt command.
root@linuxhelp:~# apt install openproject
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
catdoc dialog gsfonts imagemagick imagemagick-6-common imagemagick-6.q16 libevent-core-2.1-7 libevent-extra-2.1-7
libfftw3-double3 libilmbase24 liblept5 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
libnetpbm10 libopenexr24 libpq5 libtesseract4 netpbm tesseract-ocr tesseract-ocr-eng tesseract-ocr-osd unrtf
Suggested packages:
tk | wish imagemagick-doc autotrace curl enscript ffmpeg gimp gnuplot grads graphviz hp2xx html2ps libwmf-bin mplayer povray
radiance texlive-base-bin transfig ufraw-batch libfftw3-bin libfftw3-dev inkscape libjxr-tools
The following NEW packages will be installed:
catdoc dialog gsfonts imagemagick imagemagick-6-common imagemagick-6.q16 libevent-core-2.1-7 libevent-extra-2.1-7
libfftw3-double3 libilmbase24 liblept5 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
libnetpbm10 libopenexr24 libpq5 libtesseract4 netpbm openproject tesseract-ocr tesseract-ocr-eng tesseract-ocr-osd unrtf
0 upgraded, 25 newly installed, 0 to remove and 185 not upgraded.
Need to get 169 MB of archives.
After this operation, 494 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu focal/main amd64 libfftw3-double3 amd64 3.3.8-2ubuntu1 [728 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu focal/universe amd64 liblqr-1-0 amd64 0.4.2-2.1 [27.7 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick-6-common all 8:6.9.10.23+dfsg-2.1ubuntu11.1 [60.9 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 libmagickcore-6.q16-6 amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1 [1,644 kB]
………………………………………………………………………………..
………………………………………………………………………………….
Install PostgreSQL by using the following command.
root@linuxhelp:~# apt install postgresql postgresql-contrib
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
postgresql-12 postgresql-client-12 postgresql-client-common postgresql-common sysstat
Suggested packages:
postgresql-doc postgresql-doc-12 libjson-perl isag
The following NEW packages will be installed:
postgresql postgresql-12 postgresql-client-12 postgresql-client-common postgresql-common postgresql-contrib sysstat
0 upgraded, 7 newly installed, 0 to remove and 185 not upgraded.
Need to get 15.1 MB of archives.
After this operation, 47.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 postgresql-client-common all 214ubuntu0.1 [28.2 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 postgresql-client-12 amd64 12.5-0ubuntu0.20.04.1 [1,044 kB]
……………………………………………………………………………
……………………………………………………………………………..
Configure the Postgresql database. Log into PostgreSQL and make the necessary settings.
root@linuxhelp:~# sudo -u postgres psql
could not change directory to "/root": Permission denied
psql (12.5 (Ubuntu 12.5-0ubuntu0.20.04.1))
Type "help" for help.
postgres=# create database openproject;
CREATE DATABASE
postgres=# create user openuser with encrypted password '123456';
CREATE ROLE
postgres=#
postgres=# grant all privileges on database openproject to openuser;
GRANT
postgres=# \q
You shall now configure Open project now.
root@linuxhelp:~# openproject configure
Launching installer for openproject...
Selected addons: legacy-installer openproject-edition postgres apache2 repositories smtp memcached openproject
[legacy-installer] ./bin/configure
[openproject-edition] ./bin/configure
DONE
……………………………………………………………..
……………………………………………………………
Use an existing PostgreSQL database.
With this, the method of installing the Openproject on Ubuntu 20.4.1 Comes to an end.