Partially taken from here, but some info is outdated, some missing, because I was unable to finish setup with those manual.
So, what we have?
Freshly installed Centos 7 and root access.
Steps need to be done:
yum -y updateyum localinstall -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpmyum --disablerepo=mysql80-community --enablerepo=mysql57-community install mysql-community-server mysql-develsystemctl start mysqld.servicesystemctl enable mysqld.service
grep 'A temporary password is generated for root@localhost' /var/log/mysqld.log | tail -1/usr/bin/mysql_secure_installation #set new secure passwordmysql -uroot -p -e "CREATE DATABASE redmine CHARACTER SET utf8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'yourpassword'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';" #don't forget set secure passwordsystemctl restart mysqld.serviceyum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel sqlite-devel ImageMagick ImageMagick-develcurl -sSL https://rvm.io/mpapis.asc | gpg2 --import -curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -curl -L get.rvm.io | bash -s stablesource /etc/profile.d/rvm.shrvm reloadrvm requirements runrvm install 2.4.6</li>export GEMS=/usr/local/rvm/gems/ruby-2.4.6/gemsuseradd redmineusermod -a -G redmine apachechmod 755 /home/redmine/cd /home/redmine/wget https://www.redmine.org/releases/redmine-3.4.6.tar.gztar xvzf redmine-3.4.6.tar.gzchown redmine.redmine redmine-3.4.6 -Rexport REDMINE=/home/redmine/redmine-3.4.6cd $REDMINEcp config/database.yml.example config/database.ymlcp public/dispatch.fcgi.example public/dispatch.fcgicp public/htaccess.fcgi.example public/htaccess.fcgivi config/database.yml #set your mysql db/user/pass herecd $REDMINEgem install bundler --version 1.3bundle install --without development testbundle exec rake generate_secret_tokenRAILS_ENV=production bundle exec rake db:migrateRAILS_ENV=production REDMINE_LANG=en bundle exec rake redmine:load_default_databundle exec rails server webrick -e production #try start redmine, if everything is fine, you’ll be able to see it at localhost:3000gem install passenger$GEMS/passenger-6.0.2/bin/passenger-install-apache2-module #be careful here and check which passenger version was installed, path could be differentsystemctl restart httpdcd $REDMINEchmod 777 tmp -Rbundle exec rails server webrick -e productionNow visit your youserver.domain.org and you should see welcome page, refault user/pass for redmine is admin admin