This document describes how to install the Redmine web application. The Redmine application is a project management web application that functions on the Ruby on Rails platform. You can manage the Redmine application's configurations in cPanel's Application Manager interface (Home >> Software >> Application Manager).
- We recommend that only experienced system administrators attempt to perform these steps.
- We are not responsible for any data loss that an attempt to perform these steps causes.
- We recommend that you perform the steps in this document via the command line as a cPanel user unless otherwise specified.
- In this document,
userrepresents the cPanel user, and
greenminerepresents the Redmine web application's name.
For more information, read Redmine's documentation.
Before you begin, make certain that the following RPMs exist on the server:
To install these RPMs, run the following command as the
To install the
bundler Ruby gem, run the following command:
If you do not wish to use the
scl utility, perform the following steps to install the
bundler Ruby gem:
Log in to the server via the command line as a cPanel user.
Add the following line to your shell's
rcfile (for example,
Log out of your account, and log back in again.
You can also create a new shell prompt.
After you install the
rake Ruby gems, download the
redmine application and extract the archive file. To do this, perform the following steps:
- Navigate to the Redmine website in a web browser.
Download the most recent
.tar.gzfile from the Stable Releases section. To do this, run the following command:
.tar.gzfile's contents. To do this, run the following command:
After you extract the file, rename the archive to your Ruby application's name. To do this, run the following command:
Change the Ruby on rails version
After you extract the
redmine archive file and rename the file, change the Ruby on Rails (RoR) version that the application uses. To do this, perform the following steps:
- Open the
/home/user/greenmine/Gemfilefile with a text editor.
Locate the following line in the file:
Change the ROR version from the
126.96.36.199version to the
4.2.8version, for example:
Create the database and database users.
After you change the application's ROR version, create the application's database and configure the database users. To do this, perform the following steps:
- Create production and development databases and database users in cPanel's MySQL Database Wizard interface (Home >> Databases >> MySQL Database Wizard).
- Copy the contents of the
/home/user/greenmine/config/database.yml.examplefile to the
- Open the
/config/database.ymlfile with a text editor.
- Add the following information to the file:
- The databases' names.
- The databases' usernames.
- The databases' passwords.
The file will resemble the following example:Click to view...
Install your Ruby Gems.
To install the Ruby Gems that reside in the
/home/user/greenmine/Gemfile file, change to the
directory and run the following command.
Create a secret key.
After you install your Ruby Gems, create the "secret" key. RoR uses this random key to encode cookies and prevent cookie tampering.
To do generate the "secret" key, run the following command:
This command returns a key hash that resembles the following example:
After you create the secret key, create the
/home/user/greenmine/config/secrets.yml file and add the following content:
secretkey with the key that the
scl enable ea-ruby24 'rake secret' command returned.
Create the database structure.
After you add the security key to the
/home/user/greenmine/config/secrets.yml file, create the database structure. To do this, change to the
/home/user/greenmine directory and run the following command:
The output will resemble the following partial example:
Create the data configuration.
After you create the database structure, create the database's default configuration data set. To do this, perform the following steps:
Run the following command:
When the system prompts you, select the database's locale. To do this, enter your chosen locale's two letter abbreviation in the command line, for example:
This example selects British English (
en-GB) as the database's locale.
Set the file system permissions.
After you create the database's data configuration, set the file system permissions. To do this, change to the
/home/usr/greenmine directory and run the following series of commands:
This step is optional. UAPI's
function performs an Apache restart, but may not execute immediately.
After you create the
greenmine application's Apache configuration, restart Apache. To do this, run the following command as the
After Apache restarts, you can access the
greenmine application in cPanel's Application Manager interface (Home >> Software >> Application Manager).
There is no content with the specified labels