How to deploy Redmine in Plesk

Created:

2017-03-02 19:24:48 UTC

Modified:

2017-08-16 17:17:30 UTC

14

Was this article helpful?


Have more questions?

Submit a request

How to deploy Redmine in Plesk

Applicable to:

  • Plesk Onyx for Linux

Question

How to deploy Ruby on Rails application "Redmine" in Plesk

Answer

First of all the following Plesk components should be installed:

Web hosting:
  • Phusion Passenger server
  • Ruby support
  • Tools required for building Ruby gems

Then follow the instructions from official Redmine documentation Redmine Install .

Installation steps with particular details below:

  1. Download the latest version of Redmine from its official website .
  2. Upload redmine-3.3.3.zip via File Manager in Plesk. Unpack. Move all content from redmine-3.3.3 one level up (to httpdocs).
  3. Go to Hosting Settings and set root folder to /httpdocs/public.
  4. Go to Ruby setting on tab Websites and Domains and choose the latest supported version of ruby (for redmine 3.3.3 it is ruby 2.3.3-p222). Then click Enable Ruby.
  5. Go to Databases and add a new database and a database user (e.q. database 'redmine' and user 'redmine_user').
  6. Via File Manager rename config/database.yml.example to config/database.yml and edit it accordingly:

    production:
    adapter: mysql2
    database: redmine
    host: localhost
    username: redmine_user
    password: user_password
    encoding: utf8
  7. Install gcc compiler and gmp-devel packages using the following commands:
    • yum install gmp-devel gcc ImageMagick-devel for RedHat/CentOS
    • apt-get install libgmp3-dev gcc libmagickcore-dev for Debian/Ubuntu
  8. Go to "Ruby" settings and click "Bundle install"
  9. 8. Then click Run rake task , set task parameter to generate_secret_token and click Run The output will be as follows:
    /var/www/vhosts/redmine.test/httpdocs/vendor/bundle/ruby/2.3.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: key "inodot" is duplicated and overwritten on line 466

    According to GitHub comments, this warning can be ignored.
  10. Then set task parameter to RAILS_ENV=production db:migrate and click Run.
  11. Then set task parameter to
    RAILS_ENV=production REDMINE_LANG=ru redmine:load_default_data
  12. Open your website link in browser and log in to Redmine with default login and password (admin/admin)
Have more questions? Submit a request
Please sign in to leave a comment.