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.5gem install -v=0.4.2 i18ngem install mysqlgem install rake -v=0.8.3gem install rack -v=1.0.1gem install RedClothgem install passengerpassenger-install-apache2-module
Install Redmine¶
- Get and untar Redmine to some location
export REDMINE_HOME=LOCATION_YOU_PLACED_REDMINEcd $REDMINE_HOMErake generate_session_storeRAILS_ENV=production rake db:migrateRAILS_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_HOMEchown -R apache:apache files log tmp vendorcd $REDMINE_HOME/publicmv dispatch.cgi.example dispatch.cgimv dispatch.fcgi.example dispatch.fcgimv dispatch.rb.example dispatch.rb- Edit dispatch.cgi and add the following lines
#!/usr/local/bin/rubyrequire /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/dispatcher.rb
- Edit
$REDMINE_HOME/config/environment.rband add the following to the bottom:Redmine::Utils::relative_url_root = "/redmine" - Edit
/etc/httpd/httpd.confand 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.rbto 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 15 years ago ยท 2 revisions