Install Redmine under Windows Server2003

Source: Internet
Author: User
Tags redmine

Original: Install Redmine under Windows Server2003

References: installing RedMine2.2.3 underWindows using _ruby1.9.3

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

Note: # #符号处为重点操作

first, software preparation
  1. RailsInstaller-2.1.0 , including Ruby 1.9.3
  2. mysql5.5.x : Installation SQL front-line installation Dotnetfx40_client_setup.exe and Wic_x86_chs.exe
  3. RedMine-2.3.1
  4. LibMySQL.dll : Download the compressed package Mysql-connector-c-noinstall-6.0.2-win32.zip unzip to get the file

Second, installation
  1. Run RailsInstaller2.1.0, installed in the C packing directory
  2. Clip the downloaded libMySQL.dll to the C:\RailsInstaller\Ruby1.9.3\bin
  3. ## Direct Decompression RedMine2.3.1 compress the package to the previously installed Railsinstaller directory under
  4. CMD into Dos ,CD switch to directory C:\RailsInstaller\redmine-2.3.1 under
  5. Command "bundle Install –without development test Rmagick" installation bundle This operation requires networking, the installation process to see Complete! Indicates completion, if error, look down to step 8
  6. Dos , switch directories to C:\RailsInstaller\DevKit , command "gem install mysql2-v 0.3.11" if 0.3.11 version can not download, first download version 0.2.6
  7. MYSQL2 Download complete, command "gem list" To view the MYSQL2 version, then return to step 5, rerun the command, Install the remaining bundles.
  8. If the steps 5,6 are not normal download, you can change the download source address, found C: \railsinstaller\ Redmine-2.3.1\gemfile file, open in WordPad, modify the first line of the URL, change to http://ruby.taobao.org, and then repeat the command download
  9. After installation, install MySQL, according to the Installation Wizard to complete the installation, you need to set the root account password, no problem.
  10. Dos operation MySQL: Find the MySQL 5.5 Command line Client that appears after installing MySQL , click Run, If a flash disappears, locate the MySQL installation directory under "C:\Program files\mysql\mysql Server 5.5" My-small.ini files, modify the file name to -small Delete and try again to run
  11. Under MySQL 5.5 command line client, enter MySQLby entering the password for the MySQL root account that you previously set up, and then create the database with the following command RedMine, as well as RedMine 's proprietary accounts. Normally prompts OK after each command is run
>CREATE database redmine character set UTF8; >Create user ' redmine ' @ ' localhost ' identified by ' My_password '; >grant all privilegs in redmine.* to ' redmine ' @ ' localhost ';

12. Modify the database configuration: Copy the C:\RailsInstaller\redmine-2.3.1\config\database.yml.exampleagain, rename to \ C Railsinstaller\redmine-2.3.1\config\database.yml, use WordPad to open the "production" setting as follows:

  Production:  adapter:mysql2  database:redmine  host:localhost  username:redmine  Password: My_password  Encoding:utf8

13.Dos , switch to the directory C:\RailsInstaller\redmine-2.3.1 ,# # after the command is executed in this directory,

Set rails_env=production rake db:migrate "

 ## < Span style= "font-family: the song Body;" > error, encountered two problems 1.libmysql.dll Not successfully copied into 2.mysql2 version question, if prompted   –v 0.3.11, devkit redmine Span style= "font-family: the song Body;" > reload bar   3. redmine-2.3.1 direct decompression in railsinstaller

## It's basically a one-step success.

14. If successful, continue, load raw data

Set rails_env=productionset redmine_lang=zhrake redmine:load_default_data "

## : This is set to ZH , if not set, there will be a list of languages to choose from

15. Generate Session storage key

Rake Generate_secret_token

16. Test the installation

Ruby Scrpit, Rails server webrick–e production

Open Browser Browse http://localhost:3000/ or IP:

User name and password:admin/admin

At this point, Redmine has been installed successfully

Third, theRedmineinstalled asWindowsService

requires software srvany.exe, http://www.microsoft.com/en-us/download/details.aspx?id=17657

    1. get rktools.exe srvany.exe c:\railsinstaller\ruby1.9.3\bin
    2. install thin : dos under, CD switch to directory c:\railsinstaller\ redmine-2.3.1 gem  Install thin "

## if the installation is unsuccessful, install the –v 1.6.2 version of the

3. Open C:\RailsInstaller\redmine-2.3.1\Gemfile, add code

group:production do      gem ' thin ', require:falseend

4. Test thin

Dos , execute the command

3000

Re-open the browser for testing

Note: If the server has been previously with Xining, please stop first

5. Create a Redmine service

Dos under

SC Create RedMine binpath= "C:\RaillsInstaller\Ruby1. 9.3\bin\srvany.exe "Displayname=" RedMine2. 3.1 "

Note: There are spaces after binpath= and displayname=

6. Modify the Registration form:

Location:kkey_local_machine\system\currentcontrolset\sservices\redmine

A) Create an item (key) here, named Parameters

b) create three strings under Parameters ( where Port is the first )

appdirectory= C:\RailsInstaller\redmine-2.3.1

application = C:\RaillsInstaller\Ruby1.9.3\bin\ruby.exe

application= C:\RaillsInstaller\Ruby1.9.3\bin\thin start–e production–p 3000

7. Start the service

Dos under

net start RedMine

RedMine can also be found in the Control Panel / management tools / services to launch

Note: Try again about three minutes after startup

Iv. RedMineMail Configuration
    1. Copy C: \railsinstaller\redmine-2.3.1\config\configuration.yml.example to configuration.yml , open the Modify file with WordPad, find the setting item under the # Default configuration options for all environments, modify it as needed

Default

# Outgoing emails configuration (see examples above)

Email_delivery:

Delivery_method:: SMTP # # Server type

Smtp_settings:

address:smtp.qiye.163.com # # on-demand settings

Port:25

domain:smtp.qiye.163.com # # Ibid.

Authentication::p Lain # # Ibid.

User_name: "[email protected]" # # above the mailbox is the Outbox, It means that the items on the redmine are changed or the event notifications are sent to each member through the system mailbox.

Password: "XXX"

    1. Enter Redmine with Administrator account, manage-Configure-mail notification, fill out the relevant information of the email, test the sender
    2. Configure LDAP authentication to log on with an existing account on the LDAP server and automatically import into the Redmine account without manual registration

There is an LDAP authentication in Redmine, go in configuration

# # Gone too many detours #

name = # #LDAP names

Host = # #LDAP server's domain name ##### must be capitalized

Port = 389

LDAPS = no # # on-demand configuration

account = # # a username that exists in LDAP to verify connectivity

Password = # # corresponding password

Base DN = dc=domain,dc=org ##### must be capitalized

On-the-fly User creation = yes # # Instant users Generation

Attributes

Login = sAMAccountName

Firstname = GivenName

Lastname = SN

Email = Mail

Configuration complete, test connectivity.

Install Redmine under Windows Server2003

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.