Actions
Redmine 1.1.0 + Apache + Passenger installation on Red Hat to a sub-URI¶
This guide line takes you through a new Redmine v. 1.1.0 installation on Red Hat Linux including the use of Passenger on Apache. The following assumptions are made:
- You have a MySQL server up and running
- You have Apache Web Server up and running
Install Ruby and required gems¶
- Get and install Ruby
- Get and install Gems
gem install rails -v=2.3.5
gem install -v=0.4.2 i18n
gem install mysql
gem install rake -v=0.8.3
gem install rack -v=1.0.1
gem install RedCloth
gem install passenger
passenger-install-apache2-module
Install Redmine¶
- Get and untar Redmine to some location
export REDMINE_HOME=LOCATION_YOU_PLACED_REDMINE
cd $REDMINE_HOME
rake generate_session_store
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
(select "en" for language)ruby script/server webrick -e production
(used to test that Redmine works on WEBrick, shutdown after test)
Configure Apache to run Redmine¶
cd $REDMINE_HOME
chown -R apache:apache files log tmp vendor
cd $REDMINE_HOME/public
mv dispatch.cgi.example dispatch.cgi
mv dispatch.fcgi.example dispatch.fcgi
mv dispatch.rb.example dispatch.rb
- Edit dispatch.cgi and add the following lines
#!/usr/local/bin/ruby
require /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/dispatcher.rb
- Edit
$REDMINE_HOME/config/environment.rb
and add the following to the bottom:Redmine::Utils::relative_url_root = "/redmine"
- Edit
/etc/httpd/httpd.conf
and add the following linesLoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2 PassengerRuby /usr/local/bin/ruby <VirtualHost *> ServerName YOUR_SERVER DocumentRoot YOUR_EXISTING_DOCUMENT_ROOT RailsEnv production RailsBaseURI /redmine PassengerDefaultUser apache </VirtualHost>
sudo ln -s $REDMINE_HOME/public YOUR_EXISTING_DOCUMENT_ROOT/redmine
- Modify
$REDMINE_HOME/config/environment.rb
to add the following:# The below line is already in the file Rails::Initializer.run do |config| # A bunch of stuff config.action_controller.relative_url_root = '/redmine' # add this line here! end
References¶
Updated by Neil McFarlane almost 14 years ago ยท 2 revisions