Installation:
- Download and extract the archive or checkout Redmine.
- Create an empty database and accompanying user named
redminefor example.
create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'my_password';
grant all privileges on redmine.* to 'redmine'@'localhost';- Copy
config/database.yml.exampletoconfig/database.ymland edit this file in order to configure your database settings for "production" environment.
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: my_password
- Generate a session store secret. This is only required on the trunk version of Redmine at r2493 or above. Users installing a released version of 0.8.x can skip this step.
- Redmine stores session data in cookies by default, which requires a secret to be generated. This can be done by running:
rake config/initializers/session_store.rb- Create the database structure, by running the following command under the application root directory:
rake db:migrate RAILS_ENV="production" It will create tables and an administrator account.- Insert default configuration data in database, by running the following command:
rake redmine:load_default_data RAILS_ENV="production"- This step is optional but highly recommended, as you can define your own configuration from scratch. It will load default roles, trackers, statuses, workflows and enumerations.
- Setting up permissions
The user who runs Redmine must have write permission on
the following subdirectories:
files, log, tmp (create thelast one if not present).
Assuming you run Redmine with a
redmine user:mkdir tmp public/plugin_assets
sudo chown -R redmine:redmine files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets
- Test the installation by running WEBrick web server:
ruby script/server webrick -e production Once WEBrick has started, point your browser to http://localhost:3000/.You should now see the application welcome page.
- Use default administrator account to log in:
- login: admin
- password: admin
- You can go to
Admin & Settingsto modify application settings.

0 comments:
Post a Comment