Skip to content

Instantly share code, notes, and snippets.

@balibali
Created February 10, 2010 13:58
Show Gist options
  • Save balibali/300326 to your computer and use it in GitHub Desktop.
Save balibali/300326 to your computer and use it in GitHub Desktop.

Redmine Setup on Rackspace CentOS 5.4

2010-02-09

Base Package

# yum update
# yum install screen sysstat vim-enhanced subversion

# yum install httpd-devel
# yum install mysql-server mysql-devel
# yum install make
# yum install zlib-devel     ## for rubygems
# yum install openssl-devel  ## for passenger
# yum install gcc-c++        ## for passenger

Ruby

# cd /usr/local/src
# wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.bz2
# tar xjf ruby-1.8.7-p249.tar.bz2
# cd ruby-1.8.7-p249
# ./configure
# make
# make install

RubyGems

# cd /usr/local/src
# wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
# tar xzf rubygems-1.3.5.tgz
# cd rubygems-1.3.5
# ruby setup.rb

Rails

# gem install rails -v=2.3.5

Passenger

# gem install passenger
# passenger-install-apache2-module

 LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so
 PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.9
 PassengerRuby /usr/local/bin/ruby

 <VirtualHost *:80>
   ServerName www.yourhost.com
   DocumentRoot /somewhere/public    # <-- be sure to point to 'public'!
   <Directory /somewhere/public>
     AllowOverride all              # <-- relax Apache security settings
     Options -MultiViews            # <-- MultiViews must be turned off
   </Directory>
 </VirtualHost>

Redmine

# gem install mysql
# /etc/init.d/mysql start

git

# cd /usr/local/src
# wget http://kernel.org/pub/software/scm/git/git-1.6.6.1.tar.bz2
# tar xjf git-1.6.6.1.tar.bz2
# cd git-1.6.6.1
# ./configure --prefix=/usr
# make
# make install

Documents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment