1 apt update
2 apt upgrade
3 wget http://software.virtualmin.com/gpl/scripts/install.sh
4 sudo /bin/sh install.sh # this will install LAMP with php72, after install finish VM setup inside administration (host:10000)
7 apt install apache2 libapache2-mod-passenger
8 apt install mysql-client
12 apt install mc curl wget ncdu nano
14 cd /home/redmine/public_html/
15 wget https://www.redmine.org/releases/redmine-4.1.1.zip
17 unzip redmine-4.1.1.zip
18 mc # move files to docroot
21 gem update
22 gem install bundler -v "< 2.0"
23 mc # edit database.yml
24 ruby --version # will show: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
25 bundle install --without development test # this will fail - next line solve this problem
26 gem install nokogiri -v '1.10.10' --source 'https://rubygems.org/'
27 bundle install --without development test # this will fail - next line solve this problem
28 apt install -y build-essential patch ruby-dev zlib1g-dev liblzma-dev
29 bundle install --without development test # this will fail - next line solve this problem
30 apt-get install libmysqlclient-dev
31 bundle install --without development test # finaly - this will be done ok
32 bundle exec rake generate_secret_token
create new database in VM with UTF8 collation - default is shwedish wich doesnt support diacritics like ľščťťžýá characters
33 RAILS_ENV=production bundle exec rake db:migrate
https://www.redminecookbook.com/blog-29-Forcing-Redmine-to-use-SSL-on-A… set force https in config/aplication.rb
restart redmine: touch tm/restart.txt
I have tried also setup on Ubuntu 18.04 + nginx but it failed on nginx version (passenger need version lower than 1.15.x or lower than 1.14.x - https://github.com/phusion/passenger/issues/2104 ) Maybe Ubuntu 20 will work.