#author("2018-01-24T10:32:17+09:00","","") #author("2018-01-24T11:50:09+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/ *インストール [#w85d24b5] **ampや開発環境等のインストール [#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: "snri.net" &br; &br; rmagick_font_path: /usr/share/fonts/ipa-pgothic/ipagp.ttf #region("login認証を行なっているSMTPサーバ") # vi /var/www/redmine/config/configuration.yml &br;production: &br; email_delivery: &br; delivery_method: :smtp &br; smtp_settings: &br; address: ''mail.snri.net'' &br; port: 25 &br; authentication: :login &br; domain: redmine.example.com &br; user_name: ''admin'' &br; password: ''password'' #endregion #region("gmailのSMTPサーバ") # vi /var/www/redmine/config/configuration.yml &br;production: &br; email_delivery: &br; delivery_method: :smtp &br; smtp_settings: &br; enable_starttls_auto: true &br; address: "smtp.gmail.com" &br; port: 587 &br; domain: "smtp.gmail.com" &br; authentication: :plain &br; user_name: "''snri''@gmail.com" &br; password: "''password''" #endregion # cd /var/www/redmine # bundle install --without development test --path vendor/bundle #ref(./bundleinstall.txt); # bundle exec rake generate_secret_token # RAILS_ENV=production bundle exec rake db:migrate #ref(./bundleexec.txt); # 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 #ref(./passenger-install.txt); # 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; Require all granted &br;</Directory> &br; &br;Alias /redmine /var/www/redmine/public &br;<Location /redmine> &br; PassengerBaseURI /redmine &br; PassengerAppRoot /var/www/redmine &br;</Location> # chown -R apache:apache /var/www/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 **管理者パスワード設定 [#k18a521d] ブラウザよりアクセス #ref(./Redmine-01.png,50%); →「ログイン」 #ref(./Redmine-02.png,50%); 「ログインID」「パスワード」を入力→「ログイン」 ※初期IDは「admin:admin」 #ref(./Redmine-03.png,50%); パスワードの設定→「適用」 *参考サイト [#i6e873c7] http://blog.redmine.jp/articles/3_4/install/centos/ http://blog.redmine.jp/articles/3_1/installation_centos/