일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- fstab
- Network
- MOUNT
- GlusterFS
- Trac
- JavaScript
- VMware
- vsftpd
- Laravel
- ubuntu
- BIND
- redmine
- php
- xampp
- ftp
- VirtualBox
- Fedora
- APM
- MySQL
- tw_cli
- Subversion
- 명령어
- httpd.conf
- 라라벨
- exception
- nateon
- php5
- AIR
- CentOS
- Linux
- Today
- Total
어제와 똑같이 살면서 다른 미래를 기대하지 말자
[CentOS] Redmine 2.4 to 3.2 Upgrade 본문
에러발생... 에러문구를 잘 확인해보면 해결 가능함.
(# gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3)
# source /etc/profile.d/rvm.sh
원하는 루비버전 설치
# rvm install 1.9.3
2. 레드마인 최신버전 다운로드
# svn co https://svn.redmine.org/redmine/branches/3.2-stable /var/www/redmine-3.2
3. 기존파일들 복사
# cp -r /var/www/redmine-2.4/files/* /var/www/redmine-3.2/
4. 디비 연결설정
# cd /var/www/redmine-3.2/config
# cp database.yml.example database.yml
5. 번들 설치
# cd /var/www/redmine-3.2
# gem install bundler chef ruby-shadow --no-ri --no-rdoc
# bundle install --without development test postgresql sqlite rmagick
6. 토큰발행 (redmine 2.x 이상일 경우)
# bundle exec rake generate_secret_token
문제 발생 시 (미설치된 필요모듈을 설치해줌)
# bundle install
7. 기존 디비 마이그레이션
# RAILS_ENV=production bundle exec rake db:migrate
플러그인 디비 마이그레이션
# bundle exec rake redmine:plugins:migrate RAILS_ENV=production
8. Clean UP!!
# bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production
9. 패신져 설치/업그레이드, 환경설정
# gem install passenger
# passenger-install-apache2-module
continue... Enter
Ruby 선택
--------------------------------------------
Almost there!
Please edit your Apache configuration file, and add these lines:
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p551/gems/passenger-5.0.23/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p551/gems/passenger-5.0.23
PassengerDefaultRuby /usr/local/rvm/gems/ruby-1.9.3-p551/wrappers/ruby
</IfModule>
After you restart Apache, you are ready to deploy any number of web
applications on Apache, with a minimum amount of configuration!
Press ENTER when you are done editing.
--------------------------------------------
Validating installation...
* Checking whether this Passenger install is in PATH... ✓
* Checking whether there are no other Passenger installations... (!)
You are currently validating against Phusion Passenger 5.0.23, located in:
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/passenger-5.0.23/bin/passenger
...
/etc/httpd/conf.d/passenger.conf
...
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p551/gems/passenger-5.0.23/buildout/apache2/mod_passenger.so
# vi /etc/httpd/conf.d/passenger.conf
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p551/gems/passenger-5.0.23/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p551/gems/passenger-5.0.23
PassengerDefaultRuby /usr/local/rvm/gems/ruby-1.9.3-p551/wrappers/ruby
</IfModule>
참고페이지
http://www.redmine.org/projects/redmine/wiki/RedmineInstall#Requirements
'IT관심분야 > Linux' 카테고리의 다른 글
[GlusterFS] 구성제안 및 운영 (0) | 2016.07.07 |
---|---|
[CentOS] APM (PHP 5.6.x 설치) (0) | 2016.04.12 |
[CentOS7] firewalld to iptables 사용 (0) | 2016.03.30 |
[CentOS7] fail2ban 설치 및 설정 (0) | 2016.03.30 |
[CentOS] 리눅스 Charset 확인 및 변경 (0) | 2016.02.19 |