Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • General discussion

Content

OpenProject on existing Debian Webserver

Added by Sebastian Merr about 7 years ago

Hello,

i want to install current OpenProject on an existing productive Webserver.
A first test on a virtual testserver showed that the installation of openproject cause all other vhosts are non reachable???

What are the steps on an existing webserver?

I found this, perhabs this could be an working installation variant for me?
https://community.openproject.org/topics/5360

I want a subdomain ala openproject.example.com

Greets


Replies (4)

RE: OpenProject on existing Debian Webserver - Added by Cyril Rohr about 7 years ago

Hi,

If you choose to setup the apache server while running the installer, then it will disable the default configuration, which you should probably not use anyway since this is the stock example vhost that comes with your apache installation. If you have vhosts in /etc/apache2/sites-enabled/my-site.com then those should not be affected.

Alternatively you can just skip the apache2 configuration in the installer, and add a vhost by yourself, which just proxies requests to localhost:6000. See for instance https://packager.io/documentation/proxy/#apache-debian.

Let me know if you need more help, in which case more details about your installation would be great.

RE: OpenProject on existing Debian Webserver - Added by Sebastian Merr about 7 years ago

Hello and thank you for reply. This sounds okay.
I´ll try it in the afternoon.

RE: OpenProject on existing Debian Webserver - Added by Sebastian Merr about 7 years ago

Hello,

in the meantime i tried two times a manual installation on a virtual existing webserver as following, but the result was two times the same, that the webserver could not read the source:

### prepare ###
groupadd openproject
useradd --create-home --gid openproject openproject
passwd openproject

### install essentials ###
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 libxml2 libxml2-dev libxslt1-dev git libreadline-dev libmagickwand-dev rake # nokogiri

### prepare mysql ###
mysql -u root -p
CREATE DATABASE openproject CHARACTER SET utf8;
CREATE USER 'openproject'at-sign'localhost' IDENTIFIED BY '123456';
GRANT ALL PRIVILEGES ON openproject.* TO 'openproject'at-sign'localhost';
FLUSH PRIVILEGES;
QUIT

### install ruby ###
su openproject --login
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(rbenv init -)"' >> ~/.profile
source ~/.profile
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.3.0
rbenv rehash
rbenv global 2.3.0

# successful check with
ruby --version

### install node ###
git clone https://github.com/OiNutter/nodenv.git ~/.nodenv
echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(nodenv init -)"' >> ~/.profile
source ~/.profile
git clone git://github.com/OiNutter/node-build.git ~/.nodenv/plugins/node-build
nodenv install 5.7.1
nodenv rehash
nodenv global 5.7.1

# successful check with
node --version

### install openproject ###
cd ~
#as root
cd /var/www
git clone https://github.com/opf/openproject-ce.git --branch stable/5 --depth 1
cd openproject-ce
su openproject --login
gem install bundler
bundle install --deployment --without postgres sqlite development test therubyracer docker
npm install

### configure openproject ###
cp config/database.yml.example config/database.yml
mcedit config/database.yml
# updated
production:
database: DATABASE
username: USERNAME
password: PASSWORD
# all other commented out!
cp config/configuration.yml.example config/configuration.yml
mcedit config/configuration.yml
# mail account inserted and on the end
rails_cache_store: :memcache

# finishing
cd ~/openproject-ce
RAILS_ENV="production" ./bin/rake db:create
RAILS_ENV="production" ./bin/rake db:migrate
RAILS_ENV="production" ./bin/rake db:seed
RAILS_ENV="production" ./bin/rake assets:precompile
RAILS_ENV="production" LOCALE=de ./bin/rake db:seed
echo "export SECRET_KEY_BASE="`./bin/rake secret`"" >> ~/.profile
source ~/.profile

### apache & passenger ###
apt-get install -y apache2 libcurl4-gnutls-dev apache2-threaded-dev libapr1-dev libaprutil1-dev
chmod o+x "/home/openproject"
su openproject --login
cd ~/openproject-ce
gem install passenger
passenger-install-apache2-module
LoadModule passenger_module /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.0.26/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
  PassengerRoot /home/openproject/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/passenger-5.0.26
  PassengerDefaultRuby /home/openproject/.rbenv/versions/2.3.0/bin/ruby
</IfModule>
###################
mcedit /etc/apache2/mods-available/passenger.load
# insert
LoadModule passenger_module /home/openproject/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.26/buildout/apache2/mod_passenger.so
mcedit /etc/apache2/mods-available/passenger.conf
# insert
<IfModule mod_passenger.c>
    PassengerRoot /home/openproject/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.26
    PassengerDefaultRuby /home/openproject/.rbenv/versions/2.2.2/bin/ruby
</IfModule>
a2enmod passenger
###################
mcedit /etc/apache2/mods-available/passenger.load
# insert
LoadModule passenger_module /home/openproject/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.26/buildout/apache2/mod_passenger.so
mcedit /etc/apache2/mods-available/passenger.conf
# insert
<IfModule mod_passenger.c>
    PassengerRoot /home/openproject/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/passenger-5.0.26
    PassengerDefaultRuby /home/openproject/.rbenv/versions/2.2.2/bin/ruby
</IfModule>
a2enmod passenger
# insert
SetEnv EXECJS_RUNTIME Disabled
<VirtualHost *:80>
   ServerName openproject.fritz.box
   DocumentRoot /home/openproject/openproject-ce/public/
   <Directory /home/openproject/openproject-ce/public>
      # This relaxes Apache security settings.
      AllowOverride all
      # MultiViews must be turned off.
      Options -MultiViews
      # Uncomment this if you're on Apache >= 2.4:
      Require all granted
   </Directory>
   # Request browser to cache assets
   <Location /assets/>
     ExpiresActive On ExpiresDefault "access plus 1 year"
   </Location>
</VirtualHost>
a2ensite openproject.conf
service apache2 restart
# Apache wont start during an invalid command "ExpiresActive" which could be solved with:
ln -s /etc/apache2/mods-available/expires.load /etc/apache2/mods-enabled/
service apache2 restart@

After this, i only get a “Forbidden, You don´t have permissions to access / on this server”.

Where is my bug?

RE: OpenProject on existing Debian Webserver - Added by Sebastian Merr almost 7 years ago

Hello,

in meantime i could make a further step with following this tutorial:
https://github.com/opf/openproject/blob/release/5.0/doc/operation_guides/manual/installation-guide.md

It was completely working except the following lines on the apache vhost: (have apache 2.2!)

      # Uncomment this if you're on Apache >= 2.4:
      # Require all granted
      Order allow,deny
      Allow from all

and

   <Location /assets/>
     #ExpiresActive On ExpiresDefault "access plus 1 year"
   </Location>

But now i get a “Incomplete response received from application” message…

  • (1 - 4/4)
Loading...