To get started with ruby-related files, Redmine is based on the Ruby on Rails development.
1, download Railsinstaller, I download the version is Railsinstaller-2.2.1.exe, corresponding to the official website: http://railsinstaller.org/en Railsinstaller greatly simplifies the installation of rails. In addition to Windows, there is an installation package under the imac.
2, the download Wamp, integrates the apache,mysql,php, the use is very convenient. The corresponding official website is: http://www.wampserver.com/en/
Site deployment generally requires wamp, that is, the windows+apache+mysql+php environment. The popular integration environment has two wampserver and xampp, using Wampserver
3, download ImageMagick, this is a graph generation tool, Redmine used to generate PDFs and other content, you can also do not install. This thing I installed when there are some problems, so there is no installation.
4, Redmine source files, here download is redmine2.3.3, release version download list address is: http://rubyforge.org/frs/?group_id=1850
Once the installation files are ready, you can start the installation.
1, install the Railsinstaller, if you do not need to select the directory, the way to install down on it
2, install Wamp, first install vc2010 environment Vcredist_x86.exe, and then install WAMP, if you do not need to select the directory, the way to install down on it
3, the Redmine decompression to C:\redmine (you can extract the directory yourself)
4, install Ruby under the MYSQL2, here is using the Wamp in the MySQL, I here Wamp is the default installation, that is, installed under the C:\wamp directory, over there, MySQL directory is C:\wamp\bin\mysql\mysql5.6.12. Copy Libmysql.dll and Libmysqld.dll under C:\wamp\bin\mysql\mysql5.6.12\lib to C:\Windows\System32
Enter the DOS command prompt below
Gem install mysql2-' –with-mysql-lib= "C:\wamp\bin\mysql\mysql5.6.12\lib" –with-mysql-include= "C:\wamp\bin\mysql\ Mysql5.6.12\include "'
Note: MySQL corresponding header file and library file directory is required, otherwise the installation will fail. Enter the Gem list to see the MYSQL2 corresponding version number
5. Configure the database to run Wamp, and then configure Apache, such as operations
Then locate the directory configuration in the configuration and find allow from 127.0.0.1 to alloc from all as shown in
Then modify the phpmyadmin.conf under C:\wamp\alias to
<directory "C:/WAMP/APPS/PHPMYADMIN4.0.4/" >
Options Indexes followsymlinks execcgi
AllowOverride All
Order Deny,allow
Deny from all
Allow from 127.0.0.1
Allow from:: 1
Allow from localhost
</Directory>
Enable from 127.0.0.1 to alloc from all, and then restart Wamp so that the LAN can operate on MySQL.
My IP here is 192.168.1.30, in the browser address bar input http://192.168.200.157/phpmyadmin/, so you can enter the phpMyAdmin operation, here root default is no password, so, First change the root password to Helloredmine, (your own actual situation adjustment)
6. Prepare Redmine Database
Operating SQL in phpMyAdmin
CREATE DATABASE redmine CHARACTER SET UTF8;
CREATE USER ' redmine ' @ ' localhost ' identified by ' My_password ';
GRANT all privileges on redmine.* to ' redmine ' @ ' localhost ';
7, configure the Redmine database
Under the C:\redmine\config directory, copy Database.yml.example to Database.yml, and then edit it to configure.
Locate the production key and configure it as follows: (because it is the default, just configure the password here)
Production
Adapter:mysql2
Database:redmine
Host:localhost
Username:root
password:123456
Encoding:utf8
8, install redmine at the DOS command prompt, we go into the C:\redmine directory and then execute
Bundle install--without Development test PostgreSQL SQLite Rmagick
Note: If the installation process, it is possible because of network problems, resulting in the individual installation is not, then use the gem installs xxxxx to install the specified, after the installation is complete, then execute the above bundle install command. Until the installation is complete.
Installation success results are as follows
Then input rake Generate_secret_token, set Sessiond encryption storage
9. Initialize the Redmine database at the DOS command prompt, enter the following command
Set Rails_env=production
Rake Db:migrate
Then enter the following command, which will set the default language
Set Rails_env=production
Set Redmine_lang=zh
Rake Redmine:load_default_data
For example, it means complete
10. Run at the DOS command prompt, enter: Ruby Bin/rails server WEBRICK-E production
The installation succeeds, and then in the browser, enter
http://192.168.200.157:3000
You can see the homepage of Redmine, the initial administrator's account is admin, password is admin, then you can go in to play. The installation is complete here. If you also need to configure email and SVN, please participate in the Installation guide of the website tips Http://www.redmine.org/projects/redmine/wiki/RedmineInstall
11, the Mailbox configuration:
Under Installation path "D:\REDMINE-3.2.2\REDMINE-3.2.2\CONFIG\CONFIGURATION.YML", locate "production" under which to add
Email_delivery:
Delivery_method:async_smtp
Async_smtp_settings:
Address:smtp.qq.com
Ssl:true
port:465
Domain:qq.com
Authentication:login
User_name: <-personal settings are edited in. txt text for one-time pasting
Password: <-hand hit, encountered user_name: and password: Red (notepad++), and then the configuration will not take effect, others say that it is necessary to add quotation marks, but I do not paste the same time is no quotation mark also successful. Hope to have the great God guidance
Additional notes on some common issues:
If your luck is good enough, you can move from the first step to the tenth step. Here are some of the problems I have encountered.
1, gem install MYSQL2 may be due to network problems, no installation success. Try it a few more times.
2. Normally, the system tray icon for Wamp server should be green. If not, it may be that some services have failed to open. The most common possibility is that a 80 port conflict causes the Apache service to fail to start. The situation I encountered was because I had previously installed Xamp, so two Apache conflicts. After deleting the xamp, it is normal. To delete xamp, you need to close all related services first.
3, the default of MySQL is no password. You can change the password by logging in to the MySQL console and then using the SQL statement
mysql> use MySQL;
mysql> UPDATE user SET Password = Password (' 123456 ') WHERE user = ' root ';
mysql> FLUSH privileges;
Where 123456 is the new password. Note that the final semicolon of the SQL statement should not be omitted. and SQL execution may fail, try a few more times.
4, after modifying the MySQL password, php corresponding login password to be modified, otherwise prompt access is denied. The path to the configuration file is
C:\wamp\apps\phpmyadmin4.0.4\config.inc.php
in which to add
$cfg [' Servers '] [$i] [' allownopassword '] = false;
$cfg [' Servers '] [$i] [' user '] = ' root '; MySQL user access phpmyadmin using the MySQL username
$cfg [' Servers '] [$i] [' password '] = ' 123456 '; MySQL password (only needed password corresponding to the above MySQL username
5, redmine mysql login password configuration file path is
C:\redmine\config\database.yml
Production
Adapter:mysql2
Database:redmine
Host:localhost
Username:root
password:123456
Encoding:utf8
Since we are using production, it is enough to care only about this. This corresponds to the 9th step above, the initialization of the Redmine database, if you do not see the Redmine database in phpMyAdmin, this is the problem here.
6, deployment, to normal access, the default administrator account and password are admin, all new accounts need to be activated by the Administrator account to normal use.
Reference: http://www.redmine.org.cn/499.html
Redmine (WINDOW7) installation