Redmine1.2.2Installation and configuration
Refer:
Http://www.redmine.org/projects/redmine/wiki/RedmineInstall
Preparation:
Redmine Official Website: http://www.redmine.org/
RUBY: http://rubyforge.org/
- 1.Download rubyinstaller-1.8.7-p334.exe ,:
Http://files.rubyforge.vm.bytemark.co.uk/rubyinstaller/rubyinstaller-1.8.7-p334.exe
- 2.Download rubygems-1.6.2.zip ,:
Http://files.rubyforge.vm.bytemark.co.uk/rubygems/rubygems-1.6.2.zip
- 3.Download redmine-1.2.2.tar.gz ,:
Http://rubyforge.org/frs/download.php/75518/redmine-1.2.2.tar.gz
- 4.Download libmysql. dll ,:
Http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
Start:
- 1.Install rubyinstaller-1.8.7-p334:
Next → I accept, next → select path: D: \ ruby187, add... path and add... Select both rb> install
- 2.Install rubygems:
Decompress rubygems-1.6.2.zip and decompress it to D: \ rubygems-1.6.2
Enter this directory in DOS, enter Ruby setup. RB, and press Enter.
- 3.Install rails2.3.11:
Input: Gem install rails-V = 2.3.11
- 4.Install rack1.1.1:
Input: Gem install rack-V = 1.1.1
- 5.Verify rails and rake versions:
Input: rails -- version
Input: rake -- version
The installed version of Rake will be 0.9.2.2, So delete rake-0.9.2.2 and then install rake-0.8.7.
- 6.Delete rake-0.9.2.2.
Input: Gem uninstall rake
Install rake-0.8.7
Input: Gem install rake-V = 0.8.7
- 7.Install gem 0.4.2 i18n
Input: Gem install-V = 0.4.2 i18n
- 8.Install the MySQL plug-in:
Input: Gem install MySQL
(No definition problem may occur and no impact is found)
- 9.Decompress redmine-1.2.2.tar.gz to directory: D: \ redmine-1.2.2
- 10.Start MySQL and create a database:
Enter MySQL command line mysqld-uroot-padmin and execute the following command:
Mysql> Create Database redmine Character Set utf8;
Mysql> create user 'redmine '@ 'localhost' identified by 'redmine ';
Mysql> grant all privileges on redmine. * To 'redmine '@ 'localhost ';
- 11.Copy config/database. yml. example in the redmine directory and rename it config/database. yml. Open Database. yml,
And modify the parameters required to connect to the database:
Production:
Adapter: MySQL
Database: redmine
HOST: localhost
Username: redmine
Password: redmine
Encoding: utf8
Note: The format must be correct. The colon is followed by a space. If your MySQL port is not 3306, add a line of Port: xxxx, for example, Port: 3307.
- 12.Open the console and run the following command to enter the redmine config directory:
Enter the command to generate the session store secret,
Input: rake generate_session_store
- 13.Copy libmysql. DLL to the bin directory of ruby187 and create the database structure:
Input: Set rails_env = Production
Input: rake DB: migrate
- 14.Insert default data:
Input: rake redmine: load_default_data
Next, a language selection will pop up: Enter ZH
- 15.Return to the redmine directory:
Input: Ruby script/Server webrick-e production. Press enter.
The following page is displayed:
The installation is successful.
- 16.Delete Anonymous Users:
- 17.Open the browser and enter http: // localhost: 3000/
You can see the redmine window.
Log in with account: Admin Password: Admin
- 18.After entering the system, change the language to Chinese and change it in myaccount and setting.
Installation Error: mysql: Error: Query: not connected when rake DB: migrate
This problem occurs because the libmysql. dll in mysql5.1.3 and later versions does not have a good connection with rails. You only need to replace an old version of libmysql. dll.