とりあえずざっくり
# 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
まとめてインストール |
# 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
# systemctl start mariadb.service
# systemctl enable mariadb.service
# /usr/bin/mysqladmin -u root password 'zaq1xsw2'
# mysql -uroot -p
> create database redmine default character set utf8;
> grant all on redmine.* to redmine@localhost identified by 'zaq1xsw2';
# 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
# 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
# chown -R apache:apache /var/www/html/redmine
# firewall-cmd --zone=public --add-service=http --permanent
# firewall-cmd --reload
# systemctl start httpd.service
# systemctl enable httpd.service