List command # as root user*
# pkg install apache24 mysql56-server mysql56-client rubygem-passenger curl nano vim wget
# sysrc mysql_enable="YES"
# sysrc apache24_enable="YES
# cd /usr/local/www/
# curl -O http://www.redmine.org/releases/redmine-3.4.2.tar.gz
# tar xvf redmine-3.4.2.tar.gz
# cd redmine-3.4.2
# service mysql-server onestart
Create the necessary DB, user for Redmine and grant privileges
>CREATE DATABASE redmine CHARACTER SET utf8;
>CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
>GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
Continue command
# cp config/configuration.yml.example config/configuration.yml
# cp config/database.yml.example config/database.yml
config database.yml
>production:
> adapter: mysql2
> database: redmine
> host: localhost
> username: redmine
> password: "my_password"
> encoding: utf8
Continue Command
# gem install bundler
# bundle install --without development test
# rake generate_session_store
# rake db:migrate RAILS_ENV=production
# rake redmine:load_default_data RAILS_ENV=production
config apache
<VirtualHost *:80>
LoadModule passenger_module /usr/local/lib/ruby/gems/2.3/gems/passenger-5.1.5/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/2.3/gems/passenger-5.1.5/
PassengerRuby /usr/local/bin/ruby23
RailsEnv production
RailsBaseURI /
PassengerDefaultUser www
DocumentRoot /usr/local/www/redmine-3.4.2/public/
<Directory "/usr/local/www/redmine-3.4.2/public/">
Options -MultiViews
Require all granted
AllowOverride all
</Directory>
</VirtualHost>
restart apache
# service apache24 restart