Added by Sebastian Merr over 9 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)
Hi,
If you choose to setup the apache server while running the installer, then it will disable the
defaultconfiguration, 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.comthen 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.
Hello and thank you for reply. This sounds okay.
I´ll try it in the afternoon.
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?
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 alland
<Location /assets/> #ExpiresActive On ExpiresDefault "access plus 1 year" </Location>But now i get a “Incomplete response received from application” message…