![]() If you are not familiar with self-signed certificates, please read: Load the Redmine.pm library for Repository authentication sudo ln -s /opt/redmine/current/extra/svn/Redmine.pm /usr/lib/perl5/Apache/ Now we have to enable the configuration we just created: sudo a2enconf passenger PassengerDefaultRuby /home/it/.rvm/gems/ruby-2.0.0-p451/wrappers/ruby LoadModule passenger_module /home/it/.rvm/gems/ruby-2.0.0-p451/gems/passenger-4.0.42/buildout/apache2/mod_passenger.so It should look like: # Do NOT copy this configuration file, you need to create your owen with the output of `passenger-install-apache2-module` Do NOT copy the example below as it will very probably fail. We install Passenger to serve Redmine: gem install passengerįollow the instructions at the end of the Passenger installation to create your Passenger Apache configuration. Time to enable the required modules: sudo a2enmod ssl perl dav dav_svn dav_fs rewrite Libapache-dbi-perl libapache2-mod-perl2 libdbd-mysql-perl libauthen-simple-ldap-perl openssl We need a bunch of packages sudo apt-get install apache2 apache2-dev libcurl4-gnutls-dev apache2 libapache2-svn \ Ready Redmine’s database: bundle exec rake generate_secret_token RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:load_default_data Install and configure the web server Let the bundler install the Gem dependencies: gem install bundlerīundle install -without development test ![]() Preserve the indentation, all lines but the first are indented by 2 spaces. We will use MySQL, note that the dev library is required to compile the mysql2 gem native extention ![]() Sudo chown -R www-data:www-data /opt/redmine/repos Create the MySQL database Sudo chmod -R 775 files log tmp public/plugin_assetsĬreate repositories root mkdir -p /opt/redmine/repos/svn /opt/redmine/repos/git Sudo chown -R www-data:$USER files log tmp public/plugin_assets cd /opt/įix permissions: mkdir -p tmp tmp/pdf public/plugin_assets Get Redmine, as time of writing, the newest stable branch is 2.5-stable. Redmine dependencies sudo apt-get install imagemagick libmagickwand-dev We will also want to to use Subversion to checkout Redmine and Git for our SCM sudo apt-get install git git-core subversion Note that you can list available rubies with: rvm list known Getting Redmine Install Ruby 2.0.0 with RVM, we use RVM because it allows to easily manage Ruby versions: sudo apt-get install curl As time of writing, Ruby 2.1.x is NOT supported. The compatibility list is available on Redmine’s official website. There is also a patch available if you don’t use anonymous access.īefore anything else, we will make sure that the packages are up to date: sudo apt-get update
0 Comments
Leave a Reply. |