tar xzf ./redmine- 3)mysql -u root –p 4) CREATE DATABASE redmine CHARACTER SET utf8; CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password'; GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost'; exit if probleme of create user do this : drop user redmine@localhost; flush privileges; TRY CREATE USER AGAIN 5) nano /opt/redmine/redmine- tab tab/config/database.yml production: adapter: mysql2 database: redmine host: localhost username: redmine password: pass 6) cd remine tab tab 7)bundle install if probleme of bundler do this : gem uninstall bundler -v ">= 2.0" gem install bundler -v "< 2.0" # Now you can use bundler as before bundle install 8) bundle exec rake generate_secret_token 9) RAILS_ENV=production bundle exec rake db:migrate if you get migration aborted error with mysql2 it's probably because of Mysql v8 SOLUTION : - mysql -u root -p - enter pass - ALTER USER 'redmine'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOUPASS'; - exit NOTE : this works but it's less secure Probleme and solution https://stackoverflow.com/questions/58339607/why-does-rails-fails-to-boot-with-expected-to-find-a-manifest-file-in-app-asse 10) RAILS_ENV=production bundle exec rake redmine:load_default_data 11) bundle exec ruby /usr/bin/rails server -b 127.0.0.1 webrick -e production to expose the server -bind port 3000 in virtual box -bundle exec ruby /usr/bin/rails server -b 0.0.0.0 webrick -e production access hostip:3000/redmine 12) - cd /opt/ - chown -R www-data:www-data /opt/redmine - cd /opt/redmine/redmine- tab tab - chmod -R 755 files log tmp public/plugin_assets - chown www-data:www-data Gemfile.lock - ln -s /opt/redmine/redmine- tab tab/public/ /var/www/html/redmine if public file exists : mv /var/www/html/redmine/public/ /var/www/html/redmine/public_old and try again 13) here nano /etc/apache2/sites-available/master.conf 14) ServerAdmin admin@example.com Servername 0.0.0.0 DocumentRoot /var/www/html/ RailsEnv production RackBaseURL /redmine Options -MultiViews 15) a2dissite 000-default.conf ; a2ensite master.conf ; gedit /etc/apache2/mods-available/passenger.confg &>/dev/null graphique PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini PassengerDefaultRuby /usr/bin/ruby PassengerUser www-data 16) -service apache2 restart