Install Redmine-2.5.3 under Windows

Source: Internet
Author: User
Tags imagemagick redmine ruby on rails

Installation Preparation

Server operating system: Windows server R2 standard,64-bit operating system.

Railsinstaller version: 2.2.4 (http://railsinstaller.org/en)

ruby-2.0.0-p598-i386-mingw32.7z file (http://rubyinstaller.org/downloads/)

Redmine version: 2.5.3 (http://www.redmine.org/projects/redmine/wiki/Download)

MySQL version: 5.5.54-win32 (https://dev.mysql.com/downloads/mysql/5.5.html#downloads)

ImageMagick version: 6.9.0-0-q16-x86-dll (http://www.imagemagick.org/script/binary-releases.php)

Installing Railsinstaller

The installation process is as follows:

Click the Install button to start the installation, and the command-line environment for rails environment configuration appears when the installation is complete:

At this point, the Ruby on Rails environment is built.

Install MySQL

The installation process is as follows:

Select complete to install and next to continue.

At this point, the MySQL database is installed.

Installing Redmine

1 Unzip the Redmine Zip package into the C:\Sites directory.

2 in order for Redmine to connect to MySQL properly, you need to copy the Libmysql.dll under MySQL to the bin directory of Ruby.

3 Install the MYSQL2.

Install MYSQL2

If an error occurs: Checking for ruby/thread.h ... no description cannot find the Thread.h file, resolve the following:

Download the ruby-2.0.0-p598-i386-mingw32.7z file, unzip the include/ruby-2.0.0/ruby/thread.h file and copy it to C:\RailsInstaller\Ruby1.9.3\ The Include\ruby-1.9.1\ruby directory.

Execute the Gem install again MYSQL2 error: Checking for mysql_query () in-lmysqlclient ... no indicates that the Mysqlclient library could not be found, as follows:

After extracting the ruby-2.0.0-p598-i386-mingw32.7z file, copy the entire directory file of the include and Lib to the C:\MYSQL_SDK directory.

Execute the following command:

install mysql2----with-mysql-dir="c:/mysql_sdk"

4 MySQL Build library, add users and authorize.

CREATE DATABASERedmineCHARACTER SETUTF8;CREATE USER 'Redmine'@'localhost'Identified by 'Redmine';GRANT  All Privileges  onRedmine.*  to 'Redmine'@'localhost';

5 Configure the database connection.

Copy the database.yml.example in the C:\Sites\redmine-2.5.3\config directory, change the name to Database.yml, then open it with a text editor, and the database connection is DATABASE.YML In the configuration.

6 Install the dependencies.

Redmine use bundler to manage Gems dependencies, first install bundler:

Install bundler

All Gems dependencies required for installation of Redmine:

Install --without Development test

At this point, if ImageMagick is not installed, we can skip it using the following command:

Install --without Development test Rmagick

If your bundle is complete! appears The Gems for installation is successful. Here are some of the things that bundle install failed:

If a gem relies on an installation failure, as shown in

The solution is as follows: Download the gem dependency separately from the URL of the error prompt, then put the file into the redmine-2.5.3 directory and execute the following command:

Install -v=10.1. 1 Rake

After the installation is successful, continue with the bundle Install--without Development Test command.

Because the rubygems.org server is unstable, it is recommended to use a Ruby gems image, see: http://gems.ruby-china.org/

7 Generate session Store key.

This step generates a random key used by Rails to encode cookies storing session data thus preventing their tampering.
Generating a new secret token invalidates all existing sessions after restart.

Bundle EXEC Rake Generate_secret_token

8 Create the database structure.

Set rails_env=productionbundle exec rake db:migrate

It would create tables by running all migrations one by one then create the set of the permissions and the application Admi Nistrator account, named admin .

9 Set the database default data.

Set rails_env=productionset redmine_lang=zhbundle exec rake redmine:load_default_data

If input zh enter error: Got a packet bigger than ' Max_allowed_packet ' bytes ... You need to modify the database configuration.

Find the MySQL configuration file My.ini, add a sentence in the [mysqld] section: max_allowed_packet=16m, you can also modify the larger point.

Restart the MySQL service for the configuration file to take effect:

NET  stop  mysqlnet  start MySQL

10 Test the installation.

Bundle EXEC Ruby Script/rails server WEBRICK-E production

Browser Access Http://localhost:3000/

11 Administrator account Login.

Use the default administrator account to log in:

    • Login:admin
    • Password:admin

Install Redmine-2.5.3 under Windows

Related Article

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.