Applicable to:
- Plesk Onyx for Linux
- Plesk Onyx for Windows
Question
How to deploy Ruby on Rails application Redmine in Plesk?
Answer
Note: Redmine is a 3rd-party application. If you encounter any issues during Redmine deployment, please refer to Redmine forums for assistance.
The steps below were tested on Plesk Onyx 17.8 for CentOS 7 with default system package repositories.
-
Install the Plesk component Tools required for building Ruby gems via Plesk Installer.
-
Download the latest available version of Redmine in a .zip file at www.redmine.org to your PC/MAC.
-
In Plesk, go to Domains > example.com > File Manager and upload the .zip file from step 2 to the httpdocs directory.
Note: We recommend to remove all default files from the httpdocs directory to avoid file name conflicts.
-
Select the checkbox next to the uploaded .zip file > click
> OK.
-
Open the unzipped redmine-X.X.X directory > select all items > click
and transfer these items to the httpdocs directory.
-
Go to example.com > Databases and create a new database (For example, redmine) with a database user.
-
Go back to File Manager > open the config directory and rename database.yml.example to database.yml (
> Rename).
-
Open the database.yml file and update the database information specifying a correct database name, username and password in the "production" section. Once finished, click OK.
CONFIG_TEXT: production:
adapter: mysql2
database: redmine
host: localhost
username: database_user
password: "database_user_password"
encoding: utf8Note: In some cases, Redmine will not start up if the "development" section is not filled in. Update the same information under the "development" section.
-
Go to Domains > example.com > Ruby.
-
Set Application Root to httpdocs.
-
Select a required Ruby version. For example, if Redmine version is 3.4, set Ruby version to 2.4. For more Ruby versions, visit this Redmine documentation page.
-
Click Enable Ruby.
-
Click Bundle install (Installation might take several minutes to complete).
-
Click Run rake task:
14.1. Insert
generate_secret_token
to the Task parameters field and click Run.14.2. Insert
RAILS_ENV=production db:migrate
to the Task parameters field and click Run.14.3. Insert
RAILS_ENV=production REDMINE_LANG=en redmine:load_default_data
to the Task parameters field and click Run.14.4. Close the window.
-
Open your website in a web-browser and sign in to Redmine administration panel with default login and password (admin/admin).
Note: Language for the admin user can be changed at My Account > Language.
Comments
12 comments
Hi! A have already done all instructions but encounter an error:
Application error
Rails application failed to start properly
How can I find out what went wrong?
@conformist, Hi!
Please clarify which step you receive this error?
@Tsydenov I'm already solve my issue. distro Debian 8.9, problem is:
ruby 2.4.2 passenger 4.0.53 undefined symbol: rb_thread_blocking_region
so I setup passenger from here https://www.phusionpassenger.com/library/install/apache/install/oss/jessie/ and now it works fine
Hi,
I receive the following error when install bundle:
Thanks.
@Vacoi
was `gem install ffi -v '1.9.18'` succeeds before bundling?
I got similar problem when bundle installing redmine 3.4.6.
bundle install failed at nokogiri.
so I input command in plesk user ssh terminal.
my server is CentOS7 (AWS EC2), switch plesk user ('su myuser_id') after logged in default 'centos' user.
-bash-4.2$ gem install nokogiri -v '1.8.5' --source 'https://rubygems.org/'
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /opt/plesk/ruby/2.4.4/lib64/ruby/gems/2.4.0
Hello @colori,
I have double checked the solution from the article - I successfully installed Remine 3.4.7 using Ruby version 2.4.4.
However, I was able to reproduce a similar error by trying to install Redmine on the server without an installed component in Tools & Settings > Updates and Upgrades > Web hosting > Tools required for building Ruby gems.
Please check that this component is installed. In case it is not - install it and try to install Redmine again.
In case it is already installed - please submit a request to Plesk Support using the link https://support.plesk.com/hc/.
@Artyom
Oh..sorry, I didn't notice first step..
I noticed user(centos) .rbenv version is symbolic link to /opt/plesk/ruby/, manual install gem.
As I installed "Tools required for building Ruby gems", another application will have no problem.
Thanks !!
Hi @colori,
Glad to hear that the issue was resolved!
I get an Error on "14.2. Insert
RAILS_ENV=production db:migrate
to the Task parameters field and click Run."Can someone Help me?
@Benjamin, I recommend reaching out to Redmine Support https://www.redmine.org/projects/redmine/boards to address this issue. If it persists afterward please open a ticket with us here https://support.plesk.com/hc/en-us/articles/213953025-How-to-get-support-directly-from-Plesk-
@Julian Bonpland Mignaquy
I know now why it didn't work. I wanted to install Redmine 4.X. The manual only works with v3.4.X.
With Redmine 3.4.X everything worked fine 👌
Please sign in to leave a comment.