fuentes: https://www.openproject.
org/download-and-installation/
https://deegeplanet.com/blog/page/openproject-installation-on-ubuntu-with-postgresql-and-apache-nginx
OpenProject - Ubuntu 18.04 Bionic
Preparando entorno:
> sudo groupadd openproject
> sudo useradd --create-home --gid openproject openproject
> sudo passwd openproject #(ingresar password)
> sudo useradd -u 0 -o -g 0 nombreusuario
> sudo passwd nombreusuario
> sudo gedit /etc/sudoers (Editamos el archivo y agregar la parte
colereada)
# Usuario actual
root ALL=(ALL:ALL) ALL
openproject ALL=(ALL:ALL) ALL
Instalación de Postgresql:
> sudo apt-get install postgresql-10
> sudo -u postgres psql
psql (9.5.12)
Type "help" for help.
postgres=# create database openproject;
CREATE DATABASE
postgres=# create user openproject;
CREATE ROLE
postgres=# grant all privileges on database "openproject" to
openproject;
GRANT
Editar el archivo /etc/postgresql/10/main/pg_hba.conf
local all openproject
peer
> sudo service postgresql restart
Instalación de lo esencial:
> sudo apt-get install -y zlib1g-dev build-essential \
libssl-dev libreadline-dev
\
libyaml-dev libgdbm-dev
\
libncurses5-dev automake
\
imagemagick libmagickcore-dev libmagickwand-
dev \
libtool bison libffi-dev git curl
\
poppler-utils unrtf tesseract-ocr catdoc
\
libxml2 libxml2-dev libxslt1-dev # nokogiri
Agregar repositorio:
> wget -qO- https://dl.packager.io/srv/opf/openproject-ce/key |
sudo apt-key add -
> sudo add-apt-repository universe
> sudo wget -O /etc/apt/sources.list.d/openproject-ce.list \
https://dl.packager.io/srv/opf/openproject-ce/stable/8/installer/u
buntu/18.04.repo
Backup y Restaurar DB
https://www.openproject.org/operations/backup/backup-guide-packaged-installation/
Usando Apache2
Archivo /etc/apache2/sites-available/openproject.conf
Include /etc/openproject/addons/apache2/includes/server/*.conf
Listen 1080
<VirtualHost *:1080>
ServerName openproject.exaap.com
DocumentRoot /opt/openproject/public
ProxyRequests off
Include /etc/openproject/addons/apache2/includes/vhost/*.conf
# Can't use Location block since it would overshadow all the
other proxypass directives on CentOS
ProxyPass / http://127.0.0.1:6000/ retry=0
ProxyPassReverse / http://127.0.0.1:6000/
</VirtualHost>
Usando Nginx
server {
listen 1080 default_server;
listen [::]:1080 default_server;
index index.html index.htm index.nginx-debian.html
index.php;
server_name kiran-HPE;
root /opt/openproject/public;
location / {
autoindex on;
proxy_pass http://127.0.0.1:6000/;
}