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 update
yum localinstall -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
yum --disablerepo=mysql80-community --enablerepo=mysql57-community install mysql-community-server mysql-devel
systemctl start mysqld.service
systemctl 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 password
systemctl restart mysqld.service
yum 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-devel
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm reload
rvm requirements run
rvm install 2.4.6<
/li>export GEMS=/usr/local/rvm/gems/ruby-2.4.6/gems
useradd redmine
usermod -a -G redmine apache
chmod 755 /home/redmine/
cd /home/redmine/
wget https://www.redmine.org/releases/redmine-3.4.6.tar.gz
tar xvzf redmine-3.4.6.tar.gz
chown redmine.redmine redmine-3.4.6 -R
export REDMINE=/home/redmine/redmine-3.4.6
cd $REDMINE
cp config/database.yml.example config/database.yml
cp public/dispatch.fcgi.example public/dispatch.fcgi
cp public/htaccess.fcgi.example public/htaccess.fcgi
vi config/database.yml
#set your mysql db/user/pass herecd $REDMINE
gem install bundler --version 1.3
bundle install --without development test
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production REDMINE_LANG=en bundle exec rake redmine:load_default_data
bundle 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 httpd
cd $REDMINE
chmod 777 tmp -R
bundle exec rails server webrick -e production
Now visit your youserver.domain.org and you should see welcome page, refault user/pass for redmine is admin admin