#author("2018-01-23T18:44:17+09:00","","")
#norelated
#contents
----
とりあえずざっくり
----
**ダウンロード [#w200ca87]
-Redmine本体
&br;http://redmine.jp/download/
&br;http://www.redmine.org/projects/redmine/wiki/Download

-Ruby
&br;http://www.ruby-lang.org/ja/downloads/

**パッケージ [#qe43ac66]
# yum -y groupinstall "Development Tools"
#ref(./yum-developmenttools.txt);

# 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

#region("まとめてインストール")
 # 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
#endregion
#ref(./yum-redmine.txt);

**ruby [#l468de51]
# 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
#ref(./tar-ruby.txt);
# cd ruby-2.5.0
# ./configure --disable-install-doc
#ref(./ruby-configure.txt);
# make
#ref(./ruby-make.txt);
# make install
#ref(./ruby-makeinstall.txt);
# gem install bundler --no-rdoc --no-ri

**DB設定(([[MariaDB]]参照)) [#sc73e58f]
-設定ファイル(''/etc/my.cnf'')追記
&br;[mysqld]
&br;&color(red){character-set-server=utf8};
~
&br;&color(red){[mysql]};
&br;&color(red){default-character-set=utf8};

**DBサービスの起動/自動起動(([[MariaDB]]参照)) [#m89a368c]
# systemctl start mariadb.service
# systemctl enable mariadb.service

**DB作成 [#j74e8aa1]
-rootパスワード設定
# /usr/bin/mysqladmin -u root password 'zaq1xsw2'

# mysql -uroot -p
&br;> create database redmine default character set utf8;
&br;> grant all on redmine.* to redmine@localhost identified by 'zaq1xsw2';

**Redmine本体 [#odcea5fe]
# curl -O http://www.redmine.org/releases/redmine-3.4.4.tar.gz
# tar xvf redmine-3.4.4.tar.gz
#ref(./tar-redmine.txt);

# mv ./redmine-3.4.4 /var/www/redmine

-設定ファイル(''/var/www/redmine/config/database.yml'')
&br;production:
&br;  adapter: mysql2
&br;  database: redmine
&br;  host: localhost
&br;  username: redmine
&br;  password: "zaq1xsw2"
&br;  encoding: utf8

-設定ファイル(''/var/www/redmine/config/configuration.yml'')
&br;production:
&br;  email_delivery:
&br;    delivery_method: :smtp
&br;    smtp_settings:
&br;    address: "localhost"
&br;    port: 25
&br;    domain: "example.com"
&br;  rmagick_font_path: /usr/share/fonts/ipa-pgothic/ipagp.ttf

# 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'')に追記
&br;<Directory "/var/www/html/redmine/public">
&br;&nbsp;&nbsp;Require all granted
&br;</Directory>
&br;
&br;Alias /redmine /var/www/redmine/public
&br;<Location /redmine>
&br;&nbsp;&nbsp;PassengerBaseURI /redmine
&br;&nbsp;&nbsp;PassengerAppRoot /var/www/redmine
&br;</Location>

# chown -R apache:apache /var/www/html/redmine

**firewall設定(([[apache]]参照)) [#oe2a52eb]
# firewall-cmd --zone=public --add-service=http --permanent
# firewall-cmd --reload

**httpdサービスの起動/自動起動(([[apache]]参照)) [#m29be7eb]
# systemctl start httpd.service
# systemctl enable httpd.service


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS