Redmine: Install Passenger + Apache¶
NOTE: These steps might be necessary after a system upgrade.
Details on the installation in addition to the instructions given in ./doc/INSTALL of the redmine folder.
Partly redundant information available at https://wiki.bgbm.org/bdinotes/index.php/EDITServerSetup/Ruby_Passenger
- Table of contents
- Redmine: Install Passenger + Apache
No Subpages
Setting up Apache Passenger for Redmine¶
via gem (new method)¶
NOTE: passenger ist not installed via apt
This can be checked by the following command:
dpkg --get-selections| grep passenger
Installation via gem:
see also https://www.phusionpassenger.com/library/install/apache/install/oss/rubygems_norvm/ for the official guide
gem install passenger --no-document
Run the Passenger apache module installer and follow the on-screen instructions:
passenger-install-apache2-module
Options to select in the config menu:
- (*) ruby
... passenger apache2 module for ruby will be compiled ...
The process will end with the instruction to add lines like those below to the apache configuration:
LoadModule passenger_module /root/.rbenv/versions/2.4.10/lib/ruby/gems/2.4.0/gems/passenger-6.0.12/buildout/apache2/mod_passenger.so <IfModule mod_passenger.c> PassengerRoot /root/.rbenv/versions/2.4.10/lib/ruby/gems/2.4.0/gems/passenger-6.0.12 PassengerDefaultRuby /root/.rbenv/versions/2.4.10/bin/ruby </IfModule>
We will add these lines to two different files. The LoadModule
directive goes into /etc/apache2/mods-available/passenger.load
and the <IfModule mod_passenger.c>..
into /etc/apache2/mods-available/passenger.conf
.
restart apache
systemctl restart apache
and hit enter into the console with the passenger-install-apache2-module
process. Final checks are made which all should be successful now.
Setup the apache site¶
Configure passenger to run with www-data. Add the following directive to /etc/apache2/mods-available/passenger.conf
PassengerUser www-data
enable passenger for the location where redmine is installed:
# # Redmine # <Location /redmine/> RailsEnv production RackBaseURI /redmine Options -MultiViews </Location>
Archive¶
Update via apt (outdated!!!!)¶
apt-get install libapache2-mod-passenger
Updated by Andreas Müller about 2 years ago · 20 revisions