레드마인(Redmine) 1.2.1 설치에 관한 기록입니다. 설치에 대해서 꼼꼼히 적어놓은 것은 아니고, 대강의 중요한 설치 명령들만 추려놓았습니다. 나중에 설치 할 때 개인적으로 참고하고자 올려놓습니다.
설치 파일들
-rw-r--r-- 1 root root 9633744 7월 11 20:54 redmine-1.2.1.tar.gz -rw-r--r-- 1 root root 21913600 8월 19 14:18 ruby-1.8.7-p352.tar -rw-r--r-- 1 root root 242518 3월 9 14:55 rubygems-1.6.2.tgz
루비 1.8.7 설치
tar -xvf ruby-1.8.7-p352.tar cd ruby-1.8.7-p352 ./configure --prefix=/usr/local/ruby-1.8.7 make -j8 make install
루비젬 1.6.2 설치
tar -xvzf rubygems-1.6.2.tgz cd rubygems-1.6.2 /usr/local/ruby-1.8.7/bin/ruby ./setup.rb
Rails 및 Passenger 등 설치
yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel gem install rake -v=0.8.7 gem install rails -v=2.3.11 gem install i18n -v=0.4.2 gem install passenger passenger-install-apache2-module vi /etc/httpd/conf.d/passenger.conf vi /etc/httpd/conf.d/virtualhost.conf service httpd restart
/etc/httpd/conf.d/passenger.conf 파일
LoadModule passenger_module /usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/passenger-3.0.8/ext/apache2/mod_passenger.so PassengerRoot /usr/local/ruby-1.8.7/lib/ruby/gems/1.8/gems/passenger-3.0.8 PassengerRuby /usr/local/ruby-1.8.7/bin/ruby
/etc/httpd/conf.d/virtualhost.conf 파일
<VirtualHost *:80> ServerName redmine.bookworm.pe.kr DocumentRoot /usr/local/redmine-1.2.1/public <Directory /usr/local/redmine-1.2.1/public> AllowOverride all Options -MultiViews </Directory> </VirtualHost>
레드마인 1.2.1 설치
cd /usr/local tar -xvzf ~/redmine-1.2.1.tar.gz cd /usr/local/redmine-1.2.1/ cd config/ vi environment.rb cp database.yml.example database.yml vi database.yml rake generate_session_store gem install mysql RAILS_ENV=production rake db:migrate RAILS_ENV=production rake redmine:load_default_data mkdir tmp public/plugin_assets sudo chown -R apache:apache files log tmp public/plugin_assets sudo chmod -R 755 files log tmp public/plugin_assets ruby script/server webrick -e production
레드마인을 아파치를 통해 띄우기 위한 작업
cd public/ mv dispatch.cgi.example dispatch.cgi mv dispatch.fcgi.example dispatch.fcgi mv dispatch.rb.example dispatch.rb mv htaccess.fcgi.example .htaccess chown -R apache:apache redmine-1.2.1/ chmod -R 755 redmine-1.2.1/