ダウンロード †
インストール †
ampや開発環境等のインストール †
# yum -y groupinstall "Development Tools"
# yum -y install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel libffi-devel
# yum -y install mariadb-server mariadb-devel
# yum -y install httpd httpd-devel
# yum -y install ImageMagick ImageMagick-devel ipa-pgothic-fonts
+
| | まとめてインストール
|
# yum -y install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel libffi-devel mariadb-server mariadb-devel httpd httpd-devel ImageMagick ImageMagick-devel ipa-pgothic-fonts
|
rubyのインストール †
# curl -O https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.0.tar.gz
# tar xvf ruby-2.5.0.tar.gz
# cd ruby-2.5.0
# ./configure --disable-install-doc
# make
# make install
# gem install bundler --no-rdoc --no-ri
- 設定ファイル(/etc/my.cnf)追記
[mysqld]
character-set-server=utf8
[mysql]
default-character-set=utf8
DBサービスの起動/自動起動*2 †
# systemctl start mariadb.service
# systemctl enable mariadb.service
DB作成 †
# mysql -uroot -p
> create database redmine default character set utf8;
> grant all on redmine.* to redmine@localhost identified by 'zaq1xsw2';
Redmine本体 †
# curl -O http://www.redmine.org/releases/redmine-3.4.4.tar.gz
# tar xvf redmine-3.4.4.tar.gz
# mv ./redmine-3.4.4 /var/www/redmine
- 設定ファイル(/var/www/redmine/config/database.yml)
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: "zaq1xsw2"
encoding: utf8
- 設定ファイル(/var/www/redmine/config/configuration.yml)
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "localhost"
port: 25
domain: "snri.net"
rmagick_font_path: /usr/share/fonts/ipa-pgothic/ipagp.ttf
+
| | login認証を行なっているSMTPサーバ
|
# vi /var/www/redmine/config/configuration.yml
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: mail.snri.net
port: 25
authentication: :login
domain: redmine.example.com
user_name: admin
password: password
|
+
| | gmailのSMTPサーバ
|
# vi /var/www/redmine/config/configuration.yml
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
enable_starttls_auto: true
address: "smtp.gmail.com"
port: 587
domain: "smtp.gmail.com"
authentication: :plain
user_name: "snri@gmail.com"
password: "password"
|
# cd /var/www/redmine
# bundle install --without development test --path vendor/bundle
# bundle exec rake generate_secret_token
# RAILS_ENV=production bundle exec rake db:migrate
# RAILS_ENV=production REDMINE_LANG=ja bundle exec rake redmine:load_default_data
# gem install passenger --no-rdoc --no-ri
# passenger-install-apache2-module --auto
# passenger-install-apache2-module --snippet >> /etc/httpd/conf.d/redmine.conf
- 設定ファイル(/etc/httpd/conf.d/redmine.conf)に追記
<Directory "/var/www/html/redmine/public">
Require all granted
</Directory>
Alias /redmine /var/www/redmine/public
<Location /redmine>
PassengerBaseURI /redmine
PassengerAppRoot /var/www/redmine
</Location>
# chown -R apache:apache /var/www/redmine
firewall設定*3 †
# firewall-cmd --zone=public --add-service=http --permanent
# firewall-cmd --reload
httpdサービスの起動/自動起動*4 †
# systemctl start httpd.service
# systemctl enable httpd.service
管理者パスワード設定 †
ブラウザよりアクセス
→「ログイン」
「ログインID」「パスワード」を入力→「ログイン」
※初期IDは「admin:admin」
パスワードの設定→「適用」
参考サイト †
http://blog.redmine.jp/articles/3_4/install/centos/
http://blog.redmine.jp/articles/3_1/installation_centos/