Redmine 1.2.1 installation and Installation Problems

Source: Internet
Author: User
Tags redmine

Reference: http://www.redmine.org/projects/redmine/wiki/RedmineInstall

InstallRedmine 1.2.1Steps:

1. Download Ruby 1.8.7. : Https://rubyforge.org/frs? Group_id = 167

2. Download rubygems 1.6.2. : Http://rubyforge.org/frs? Group_id = 126

Install rubygems

Ruby setup. Rb

3. Install rails 2.3.11

gem install rails -v=2.3.11

4. Install rack 1.1.1

Gem install rack-V = 1.1.1

5. Verify the rails version rake.

Rails -- version

Rake -- version

Rails must be 2.3.11

Rake must be 0.8.7

6. Install MySQL 5.0 or later and install the MySQL plug-in using gem.

Gem install MySQL

8. Download redmine 1.2.1 and decompress it.

9. Create an empty database and use the MySQL Console

Create Database redmine Character Set utf8;
Create user 'redmine '@ 'localhost' identified by 'my _ password ';
Grant all privileges on redmine. * To 'redmine '@ 'localhost ';

10. Copyconfig/database.yml.exampleIsConfig/database. yml and set the production content

Production:
Adapter: MySQL
Database: redmine
HOST: localhost
Username: redmine
Password: my_password

11. Open the console (CMD), go to the redmine directory, and enter the command to generate the session store secret.

gem install -v=0.4.2 i18n

rake generate_session_store

12. Copy libmysql. DLL to the ruby bin directory and create the database structure.

SET RAILS_ENV=production

rake db:migrate

13. Insert default data

rake redmine:load_default_data

14. Test the installation by running webrick Web Server:

ruby script/server webrick -e production

15. use default Administrator Account to log in:

Login: Admin

Password: Admin

 

1. MySQL: Error: Query: not connected when rake DB: migrate

This problem occurs because the libmysql. dll file in MySQL 5.1.3 and later cannot be properly connected to rails. Therefore, you only need to replace an old version of libmysql. dll file. Download the old version libmysql. dll and put it in the ruby bin directory.

2. Rake DB: rake/rdoctask is deprecated. Use rdoc/task instead

The rake version must be 0.8.7.

Use rake -- version to view the version. If it is not 0.8.7

Use gem uninstall rake to uninstall

Run the gem install rake-V = 0.8.7 command to install the SDK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.