"CentOS 레드마인 설치"의 두 판 사이의 차이

 
(사용자 3명의 중간 판 38개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{다른뜻|우분투 레드마인 설치}}
{{다른뜻|우분투 레드마인 설치}}
{{테스트|CentOS 6}}
{{테스트|CentOS 6}}
{{작성중}}
;CentOS 레드마인 설치하기
;How To Install Redmine
;레드마인 설치하기


==사전 작업==
==사전 작업==
9번째 줄: 7번째 줄:
* [[CentOS 아파치 설치]]
* [[CentOS 아파치 설치]]
* [[CentOS MySQL 설치]]
* [[CentOS MySQL 설치]]
* [[CentOS rvm + ruby 설치]]
* [[CentOS6 ruby-2.3 설치]]
* [[yum install ImageMagick ImageMagick-devel]]
 
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# ruby -v
[root@zetawiki ~]# ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux-gnu]
[root@zetawiki ~]# gem -v
[root@zetawiki ~]# gem -v
2.6.12
2.5.2
</source>
* [[gem install bundler]]
* [[yum install httpd-devel]]
* [[yum install mysql-devel]]
* [[yum install libcurl-devel]]
* [[yum install ImageMagick ImageMagick-devel]]
* [[yum install gcc-c++]]
<source lang='bash'>
gem install bundler
yum install mysql-devel libcurl-devel httpd-devel ImageMagick ImageMagick-devel
</source>
</source>


==passenger 설치==
==MySQL redmine DB 설정==
<source lang='console'>
[root@zetawiki ~]# mysql -uroot -p
Enter password: P@ssw0rd
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# gem install passenger
mysql> create database redmine character set utf8;
Fetching: rack-2.0.3.gem (100%)
Query OK, 1 row affected (0.04 sec)
Successfully installed rack-2.0.3
 
Fetching: passenger-5.1.4.gem (100%)
mysql> create user 'redmine'@'localhost' identified by 'P@ssw0rd';
Building native extensions.  This could take a while...
Query OK, 0 rows affected (0.04 sec)
Successfully installed passenger-5.1.4
 
Parsing documentation for rack-2.0.3
mysql> grant all privileges on redmine.* to 'redmine'@'localhost';
Installing ri documentation for rack-2.0.3
Query OK, 0 rows affected (0.02 sec)
Parsing documentation for passenger-5.1.4
 
Installing ri documentation for passenger-5.1.4
mysql> flush privileges;
Done installing documentation for rack, passenger after 39 seconds
Query OK, 0 rows affected (0.00 sec)
2 gems installed
 
mysql> exit
Bye
</source>
</source>


==mod_passenger 설치==
==레드마인 설치==
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# yum install http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.rpm
[root@zetawiki ~]# wget http://www.redmine.org/releases/redmine-3.3.3.tar.gz
... (생략)
--2017-06-01 18:28:51--  http://www.redmine.org/releases/redmine-3.3.3.tar.gz
===========================================================================================
Resolving www.redmine.org... 46.4.36.71
Package                Arch        Version        Repository                      Size
Connecting to www.redmine.org|46.4.36.71|:80... connected.
===========================================================================================
HTTP request sent, awaiting response... 200 OK
Installing:
Length: 2366378 (2.3M) [application/x-gzip]
passenger-release      noarch      3-6.el6        /passenger-release.noarch      2.7 k
Saving to: “redmine-3.3.3.tar.gz”


Transaction Summary
100%[=================================================>] 2,366,378    641K/s   in 3.6s   
===========================================================================================
Install      1 Package(s)


Total size: 2.7 k
2017-06-01 18:28:56 (641 KB/s) - “redmine-3.3.3.tar.gz” saved [2366378/2366378]
Installed size: 2.7 k
Is this ok [y/N]: y
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# tar xvzf redmine-3.3.3.tar.gz
... (생략)
... (생략)
Installed:
redmine-3.3.3/extra/sample_plugin/init.rb
  passenger-release.noarch 0:3-6.el6                                                     
redmine-3.3.3/extra/mail_handler/
redmine-3.3.3/extra/mail_handler/rdm-mailhandler.rb
</source>
<source lang='console'>
[root@zetawiki ~]# mv redmine-3.3.3/ /var/www/redmine
[root@zetawiki ~]# cd /var/www/redmine/
[root@zetawiki redmine]# ll
total 84
drwxrwxr-x  6 1000 1000 4096 Apr  9 17:46 app
-rw-rw-r--  1 1000 1000  851 Apr  9 17:47 appveyor.yml
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 bin
drwxrwxr-x  5 1000 1000 4096 Apr  9 17:47 config
-rw-rw-r--  1 1000 1000  160 Apr  9 17:47 config.ru
-rw-rw-r--  1 1000 1000  241 Apr  9 17:47 CONTRIBUTING.md
drwxrwxr-x  3 1000 1000 4096 Apr  9 17:47 db
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 doc
drwxrwxr-x  5 1000 1000 4096 Apr  9 17:47 extra
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 files
-rw-rw-r--  1 1000 1000 3934 Apr  9 17:47 Gemfile
drwxrwxr-x  7 1000 1000 4096 Apr  9 17:47 lib
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 log
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 plugins
drwxrwxr-x  8 1000 1000 4096 Apr  9 17:47 public
-rw-rw-r--  1 1000 1000  275 Apr  9 17:47 Rakefile
-rw-rw-r--  1 1000 1000  205 Apr  9 17:47 README.rdoc
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 script
drwxrwxr-x 10 1000 1000 4096 Apr  9 17:46 test
drwxrwxr-x  9 1000 1000 4096 Apr  9 17:47 tmp
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 vendor
</source>


Complete!
==레드마인 설정==
<source lang='console'>
[root@zetawiki redmine]# vi config/database.yml
</source>
<source lang='yaml'>
production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "P@ssw0rd"
  encoding: utf8
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo
 
[root@zetawiki ~]# yum install mod_passenger
[root@zetawiki redmine]sudo yum install ruby-devel
.
[root@zetawiki redmine]# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your
bundle as root will break this application for all non-root users on this machine.
Please configure your config/database.yml first
... (생략)
... (생략)
===========================================================================================
Fetching roadie-rails 1.2.1
Package                Arch            Version                  Repository          Size
Installing roadie-rails 1.2.1
===========================================================================================
Fetching rails 4.2.7.1
Installing:
Installing rails 4.2.7.1
mod_passenger          x86_64          5.1.4-1.el6              passenger          306 k
Bundle complete! 32 Gemfile dependencies, 71 gems now installed.
Installing for dependencies:
Use `bundle info [gemname]` to see where a bundled gem is installed.
passenger              x86_64          5.1.4-1.el6              passenger          1.9 M
Post-install message from yard:
rubygem-rake          noarch          0.8.7-2.1.el6            base              404 k
--------------------------------------------------------------------------------
As of YARD v0.9.2:
 
RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure
YARD to automatically build the yri index for installed gems by typing:


Transaction Summary
    $ yard config --gem-install-yri
===========================================================================================
Install      3 Package(s)


Total download size: 2.6 M
See `yard config --help` for more information on RubyGems install hooks.
Installed size: 8.7 M
Is this ok [y/N]: y
</source>
<source lang='console'>
... (생략)
Installed:
  mod_passenger.x86_64 0:5.1.4-1.el6                                                     


Dependency Installed:
You can also add the following to your .gemspec to have YARD document your gem
  passenger.x86_64 0:5.1.4-1.el6            rubygem-rake.noarch 0:0.8.7-2.1.el6         
on install:


Complete!
    spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.
</source>


==gem 업데이트, bundler 설치==
--------------------------------------------------------------------------------
<source lang='console'>
[root@zetawiki ~]# gem -v
2.6.12
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# gem update
[root@zetawiki redmine]# bundle exec rake generate_secret_token
Updating installed gems
[root@zetawiki redmine]# bundle exec rake db:migrate RAILS_ENV=production
Updating bigdecimal
Fetching: bigdecimal-1.3.2.gem (100%)
... (생략)
... (생략)
Parsing documentation for xmlrpc-0.3.0
== 20160529063352 AddRolesSettings: migrating =================================
Done installing documentation for xmlrpc after 0 seconds
-- add_column(:roles, :settings, :text)
Gems updated: bigdecimal did_you_mean json minitest openssl power_assert psych rdoc test-unit xmlrpc
  -> 0.0100s
== 20160529063352 AddRolesSettings: migrated (0.0101s) ========================
</source>
</source>
==passenger 설치==
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# gem install bundler
[root@zetawiki redmine]# gem install passenger
Fetching: bundler-1.15.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed bundler-1.15.0
Successfully installed passenger-5.1.4
Parsing documentation for bundler-1.15.0
Parsing documentation for passenger-5.1.4
Installing ri documentation for bundler-1.15.0
Done installing documentation for passenger after 22 seconds
Done installing documentation for bundler after 7 seconds
1 gem installed
1 gem installed
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# bundler -v
 
Bundler version 1.15.0
[root@zetawiki redmine]yum install -y openssl openssl-devel
 
[root@zetawiki redmine]# passenger-install-apache2-module
Welcome to the Phusion Passenger Apache 2 module installer, v5.1.4.
 
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.
 
Here's what you can expect from the installation process:
 
1. The Apache 2 module will be installed for you.
2. You'll learn how to configure Apache.
3. You'll learn how to deploy a Ruby on Rails application.
 
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
 
Press Enter to continue, or Ctrl-C to abort.
</source>
</source>
<source lang='console'>
--------------------------------------------
Which languages are you interested in?
Use <space> to select.
If the menu doesn't display correctly, press '!'


==레드마인 설치==
‣ ⬢  Ruby
  ⬢  Python
  ⬡  Node.js
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# wget https://github.com/redmine/redmine/archive/3.3.3.tar.gz
... (생략)
... (생략)
2017-06-01 15:29:19 (938 KB/s) - “3.3.3.tar.gz” saved [2384478]
creating Makefile
cd 'buildout/ruby/ruby-2.3.4-x86_64-linux/' && make
compiling /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4/src/ruby_native_extension/passenger_native_support.c
linking shared-object passenger_native_support.so
 
--------------------------------------------
Almost there!
 
Please edit your Apache configuration file, and add these lines:
 
  LoadModule passenger_module /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4/buildout/apache2/mod_passenger.so
  <IfModule mod_passenger.c>
    PassengerRoot /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4
    PassengerDefaultRuby /usr/bin/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.
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# tar xvzf 3.3.3.tar.gz
--------------------------------------------
redmine-3.3.3/
 
redmine-3.3.3/.gitignore
Validating installation...
redmine-3.3.3/.hgignore
 
... (생략)
* Checking whether this Passenger install is in PATH...
redmine-3.3.3/tmp/test/empty
* Checking whether there are no other Passenger installations...
redmine-3.3.3/tmp/thumbnails/
* Checking whether Apache is installed...
redmine-3.3.3/tmp/thumbnails/empty
* Checking whether the Passenger module is correctly configured in Apache... (!)
 
  You did not specify 'LoadModule passenger_module' in any of your Apache
  configuration files. Please paste the configuration snippet that this
  installer printed earlier, into one of your Apache configuration files, such
  as /etc/httpd/conf/httpd.conf.
 
 
Detected 0 error(s), 1 warning(s).
Press ENTER to continue.
</source>
</source>
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# mv redmine-3.3.3/ /usr/share/redmine
--------------------------------------------
[root@zetawiki ~]# cd /usr/share/redmine/
 
[root@zetawiki redmine]# ll
Deploying a web application
total 80
 
drwxrwxr-x  6 root root 4096 Apr  9 17:47 app
To learn how to deploy a web app on Passenger, please follow the deployment
-rw-rw-r-- 1 root root  851 Apr  9 17:47 appveyor.yml
guide:
drwxrwxr-x  2 root root 4096 Apr  9 17:47 bin
 
drwxrwxr-x  5 root root 4096 Apr  9 17:47 config
  https://www.phusionpassenger.com/library/deploy/apache/deploy/
-rw-rw-r-- 1 root root  160 Apr  9 17:47 config.ru
 
-rw-rw-r-- 1 root root  241 Apr  9 17:47 CONTRIBUTING.md
Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)
drwxrwxr-x  3 root root 4096 Apr  9 17:47 db
https://www.phusionpassenger.com
drwxrwxr-x  2 root root 4096 Apr  9 17:47 doc
 
drwxrwxr-x  5 root root 4096 Apr  9 17:47 extra
Phusion Passenger is a registered trademark of Hongli Lai & Ninh Bui.
drwxrwxr-x  2 root root 4096 Apr  9 17:47 files
-rw-rw-r-- 1 root root 3934 Apr  9 17:47 Gemfile
drwxrwxr-x  7 root root 4096 Apr  9 17:47 lib
drwxrwxr-x  2 root root 4096 Apr  9 17:47 log
drwxrwxr-x  2 root root 4096 Apr  9 17:47 plugins
drwxrwxr-x  8 root root 4096 Apr  9 17:47 public
-rw-rw-r-- 1 root root  275 Apr  9 17:47 Rakefile
-rw-rw-r-- 1 root root  205 Apr  9 17:47 README.rdoc
drwxrwxr-x  2 root root 4096 Apr  9 17:47 script
drwxrwxr-x 10 root root 4096 Apr  9 17:47 test
drwxrwxr-x  5 root root 4096 Apr  9 17:47 tmp
</source>
</source>
==아파치 설정==
* httpd.conf 하단에 내용 추가
<source lang='console'>
<source lang='console'>
[root@zetawiki redmine]# bundle install
[root@zetawiki redmine]# vi /etc/httpd/conf/httpd.conf
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your
</source>
bundle as root will break this application for all non-root users on this machine.
<source lang='aconf'>
Please configure your config/database.yml first
LoadModule passenger_module /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4/buildout/apache2/mod_passenger.so
... (생략)
<IfModule mod_passenger.c>
Fetching rails 4.2.7.1
PassengerRoot /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4
Installing rails 4.2.7.1
PassengerDefaultRuby /usr/bin/ruby
Bundle complete! 30 Gemfile dependencies, 70 gems now installed.
</IfModule>
Use `bundle info [gemname]` to see where a bundled gem is installed.
<Directory /var/www/html/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
</source>
</source>
==레드마인 DB 설정==
<source lang='console'>
<source lang='console'>
[root@zetawiki redmine]# vi /usr/share/redmine/config/database.yml
[root@zetawiki redmine]# ln -s /var/www/redmine/public /var/www/html/redmine
[root@zetawiki redmine]# ll /var/www/html/redmine
lrwxrwxrwx 1 root root 23 Jun  2 11:13 /var/www/html/redmine -> /var/www/redmine/public
</source>
</source>
<source lang='yaml'>
<source lang='console'>
production:
[root@zetawiki redmine]# chown -R apache. /var/www/redmine  
  adapter: mysql2
[root@zetawiki redmine]# service httpd restart
  database: redmine
Stopping httpd:                                           [  OK  ]
  host: localhost
Starting httpd:                                           [  OK  ]
  username: root
  password: "P@ssw0rd"
  encoding: utf8
</source>
</source>
==확인 및 패스워드 변경==
* http://서버주소/redmine 으로 접속하여 확인
:( http://서버주소 로 접속하면 아파치 기본 화면이 표시된다. )
* admin / admin 으로 로그인
* 새 비밀번호 설정 ( 비밀번호: admin, 새 비밀번호, 비밀번호 확인 입력 후 [적용] 클릭 )


==같이 보기==
==같이 보기==
193번째 줄: 290번째 줄:
* [[레드마인]]
* [[레드마인]]


==참고 자료==
==참고==
* https://www.server-world.info/en/note?os=CentOS_6&p=redmine
* http://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_(Detailed)
* http://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_(Detailed)
* https://www.phusionpassenger.com/library/install/apache/install/oss/el6/ ★ mod_passenger 설치 오류 해결
* http://theeye.pe.kr/entry/how-to-install-redmine-which-good-project-management-system-is-better-than-trac
* http://theeye.pe.kr/entry/how-to-install-redmine-which-good-project-management-system-is-better-than-trac
* http://blog.itsmine.co.uk/2009/01/22/howto-install-subversion-and-redmine-on-centos5-rhel5/
* http://blog.itsmine.co.uk/2009/01/22/howto-install-subversion-and-redmine-on-centos5-rhel5/
203번째 줄: 300번째 줄:
[[분류: redmine]]
[[분류: redmine]]
[[분류:설치]]
[[분류:설치]]
[[분류: passenger]]

2018년 1월 29일 (월) 14:31 기준 최신판

  다른 뜻에 대해서는 우분투 레드마인 설치 문서를 참조하십시오.
CentOS 레드마인 설치하기

1 사전 작업[ | ]

Console
Copy
[root@zetawiki ~]# ruby -v
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux-gnu]
[root@zetawiki ~]# gem -v
2.5.2
Bash
Copy
gem install bundler
yum install mysql-devel libcurl-devel httpd-devel ImageMagick ImageMagick-devel

2 MySQL redmine DB 설정[ | ]

Console
Copy
[root@zetawiki ~]# mysql -uroot -p
Enter password: P@ssw0rd
Console
Copy
mysql> create database redmine character set utf8;
Query OK, 1 row affected (0.04 sec)

mysql> create user 'redmine'@'localhost' identified by 'P@ssw0rd';
Query OK, 0 rows affected (0.04 sec)

mysql> grant all privileges on redmine.* to 'redmine'@'localhost';
Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges; 
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye

3 레드마인 설치[ | ]

Console
Copy
[root@zetawiki ~]# wget http://www.redmine.org/releases/redmine-3.3.3.tar.gz
--2017-06-01 18:28:51--  http://www.redmine.org/releases/redmine-3.3.3.tar.gz
Resolving www.redmine.org... 46.4.36.71
Connecting to www.redmine.org|46.4.36.71|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2366378 (2.3M) [application/x-gzip]
Saving to: “redmine-3.3.3.tar.gz”

100%[=================================================>] 2,366,378    641K/s   in 3.6s    

2017-06-01 18:28:56 (641 KB/s) - “redmine-3.3.3.tar.gz” saved [2366378/2366378]
Console
Copy
[root@zetawiki ~]# tar xvzf redmine-3.3.3.tar.gz
... (생략)
redmine-3.3.3/extra/sample_plugin/init.rb
redmine-3.3.3/extra/mail_handler/
redmine-3.3.3/extra/mail_handler/rdm-mailhandler.rb
Console
Copy
[root@zetawiki ~]# mv redmine-3.3.3/ /var/www/redmine
[root@zetawiki ~]# cd /var/www/redmine/
[root@zetawiki redmine]# ll
total 84
drwxrwxr-x  6 1000 1000 4096 Apr  9 17:46 app
-rw-rw-r--  1 1000 1000  851 Apr  9 17:47 appveyor.yml
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 bin
drwxrwxr-x  5 1000 1000 4096 Apr  9 17:47 config
-rw-rw-r--  1 1000 1000  160 Apr  9 17:47 config.ru
-rw-rw-r--  1 1000 1000  241 Apr  9 17:47 CONTRIBUTING.md
drwxrwxr-x  3 1000 1000 4096 Apr  9 17:47 db
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 doc
drwxrwxr-x  5 1000 1000 4096 Apr  9 17:47 extra
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 files
-rw-rw-r--  1 1000 1000 3934 Apr  9 17:47 Gemfile
drwxrwxr-x  7 1000 1000 4096 Apr  9 17:47 lib
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 log
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 plugins
drwxrwxr-x  8 1000 1000 4096 Apr  9 17:47 public
-rw-rw-r--  1 1000 1000  275 Apr  9 17:47 Rakefile
-rw-rw-r--  1 1000 1000  205 Apr  9 17:47 README.rdoc
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 script
drwxrwxr-x 10 1000 1000 4096 Apr  9 17:46 test
drwxrwxr-x  9 1000 1000 4096 Apr  9 17:47 tmp
drwxrwxr-x  2 1000 1000 4096 Apr  9 17:47 vendor

4 레드마인 설정[ | ]

Console
Copy
[root@zetawiki redmine]# vi config/database.yml
yaml
Copy
production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "P@ssw0rd"
  encoding: utf8
Console
Copy
[root@zetawiki redmine]sudo yum install ruby-devel
.
[root@zetawiki redmine]# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your
bundle as root will break this application for all non-root users on this machine.
Please configure your config/database.yml first
... (생략)
Fetching roadie-rails 1.2.1
Installing roadie-rails 1.2.1
Fetching rails 4.2.7.1
Installing rails 4.2.7.1
Bundle complete! 32 Gemfile dependencies, 71 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from yard:
--------------------------------------------------------------------------------
As of YARD v0.9.2:

RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure
YARD to automatically build the yri index for installed gems by typing:

    $ yard config --gem-install-yri

See `yard config --help` for more information on RubyGems install hooks.

You can also add the following to your .gemspec to have YARD document your gem
on install:

    spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.

--------------------------------------------------------------------------------
Console
Copy
[root@zetawiki redmine]# bundle exec rake generate_secret_token
[root@zetawiki redmine]# bundle exec rake db:migrate RAILS_ENV=production
... (생략)
== 20160529063352 AddRolesSettings: migrating =================================
-- add_column(:roles, :settings, :text)
   -> 0.0100s
== 20160529063352 AddRolesSettings: migrated (0.0101s) ========================

5 passenger 설치[ | ]

Console
Copy
[root@zetawiki redmine]# gem install passenger
Building native extensions.  This could take a while...
Successfully installed passenger-5.1.4
Parsing documentation for passenger-5.1.4
Done installing documentation for passenger after 22 seconds
1 gem installed
Console
Copy
[root@zetawiki redmine]yum install -y openssl openssl-devel

[root@zetawiki redmine]# passenger-install-apache2-module 
Welcome to the Phusion Passenger Apache 2 module installer, v5.1.4.

This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.

Here's what you can expect from the installation process:

 1. The Apache 2 module will be installed for you.
 2. You'll learn how to configure Apache.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.
Console
Copy
--------------------------------------------

Which languages are you interested in?

Use <space> to select.
If the menu doesn't display correctly, press '!'

 ‣ ⬢  Ruby
   ⬢  Python
   ⬡  Node.js
Console
Copy
... (생략)
creating Makefile
cd 'buildout/ruby/ruby-2.3.4-x86_64-linux/' && make
compiling /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4/src/ruby_native_extension/passenger_native_support.c
linking shared-object passenger_native_support.so

--------------------------------------------
Almost there!

Please edit your Apache configuration file, and add these lines:

   LoadModule passenger_module /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4/buildout/apache2/mod_passenger.so
   <IfModule mod_passenger.c>
     PassengerRoot /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4
     PassengerDefaultRuby /usr/bin/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.
Console
Copy
--------------------------------------------

Validating installation...

 * Checking whether this Passenger install is in PATH... ✓
 * Checking whether there are no other Passenger installations... ✓
 * Checking whether Apache is installed... ✓
 * Checking whether the Passenger module is correctly configured in Apache... (!)

   You did not specify 'LoadModule passenger_module' in any of your Apache
   configuration files. Please paste the configuration snippet that this
   installer printed earlier, into one of your Apache configuration files, such
   as /etc/httpd/conf/httpd.conf.


Detected 0 error(s), 1 warning(s).
Press ENTER to continue.
Console
Copy
--------------------------------------------

Deploying a web application

To learn how to deploy a web app on Passenger, please follow the deployment
guide:

  https://www.phusionpassenger.com/library/deploy/apache/deploy/

Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)
https://www.phusionpassenger.com

Phusion Passenger is a registered trademark of Hongli Lai & Ninh Bui.

6 아파치 설정[ | ]

  • httpd.conf 하단에 내용 추가
Console
Copy
[root@zetawiki redmine]# vi /etc/httpd/conf/httpd.conf
aconf
Copy
LoadModule passenger_module /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
	PassengerRoot /usr/lib64/ruby/gems/2.3.0/gems/passenger-5.1.4
	PassengerDefaultRuby /usr/bin/ruby
</IfModule>
<Directory /var/www/html/redmine>
	RailsBaseURI /redmine
	PassengerResolveSymlinksInDocumentRoot on
</Directory>
Console
Copy
[root@zetawiki redmine]# ln -s /var/www/redmine/public /var/www/html/redmine
[root@zetawiki redmine]# ll /var/www/html/redmine
lrwxrwxrwx 1 root root 23 Jun  2 11:13 /var/www/html/redmine -> /var/www/redmine/public
Console
Copy
[root@zetawiki redmine]# chown -R apache. /var/www/redmine 
[root@zetawiki redmine]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

7 확인 및 패스워드 변경[ | ]

( http://서버주소 로 접속하면 아파치 기본 화면이 표시된다. )
  • admin / admin 으로 로그인
  • 새 비밀번호 설정 ( 비밀번호: admin, 새 비밀번호, 비밀번호 확인 입력 후 [적용] 클릭 )

8 같이 보기[ | ]

9 참고[ | ]