Reminder, the version must not be too high, especially redmine, I toss on this issue for a long time. The version numbers given below are installed successfully.
Remine do not need apache,php, etc environment.
1. Add a ruby runtime environment to Dos (download and install Rubyinstaller-1.8.7-p249-rc2.exe)
: http://rubyforge.org/frs/?group_id=167&release_id=42563
2. The operating environment required to install the Redmine
After installing Rubyinstaller, click on the Start menu and select Start Command Prompt with Ruby
Go to the DOS interface that contains the ruby environment and execute the following commands in turn:
Gem Install Rake
Gem install-v=1.0.1 Rack
Gem install MySQL (this can not be operated)
Gem install-v=2.3.5 Rails
3. Installation and creation of the database
I'm using Mysql-essential-5.1.44-win32.msi.
Go to the MySQL command line 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 ';
4. Download the Redmine compression Pack (Redmine0.8.7.zip) with a higher version found at a very slow speed.
Http://files.rubyforge.vm.bytemark.co.uk/redmine/redmine-0.8.7.zip
Unzip and go to the directory extracted to the c:\Appsrv\www\ directory, rename the config/database.yml.example to Config/database.yml,
and modify the parameters required for the linked database, the following is the modification information, the bold part is modified content:
Production
Adapter:mysql
Database:redmine
Host:localhost
Username:redmine
Password:redmine
Encoding:utf8
5. Generate session key, perform data migration and load redmine default configuration
Set Rails_env=production
Rake config/initializers/session_store.rb
Rake Db:migrate
Rake Redmine:load_default_data (set up in the article)
Rake db:migrate rails_env= "Production"
This command creates a database structure for production. This is a key step, the author has been here after several attempts to install the redmine.
If the "Mysql::error:the ' InnoDB ' feature is disabled" error occurs, you need to turn on the Mysql database for InnoDB support, Open the My.ini file in your MySQL installation folder, locate Skip-innodb, change to #skip-innodb, and then restart MySQL (note: You can show variables like "have_%" via the MySQL command; See if InnoDB is turned on)
(If the following exception occurs:
Mysql::error:query:not connected:create TABLE ' schema_migrations ' (' version varchar (255) not NULL) Engine=innodb
Description of the dynamic link library file that needs to be added to MySQL LibmySQL.dll
Http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
Then copy the LibmySQL.dll to the ruby/bin/directory (you install the Rubyinstaller directory)
At this point, redmine installation is complete, the following with Redmine Webrick server running Redmine, test whether the installation is successful)
7. Run the following command in command-line mode:
CD to Redmine directory
Ruby Script/server WEBRICK-E Production
8. Open the browser, visit the following URL: http://localhost:3000/ , use user admin (password Admin) login to try it!
9. Modify the email.yml in the folder config under Redmine, with the following information:
Production
Delivery_method:: SMTP
Smtp_settings:
Address:mail. Xxxxx
Port:25
Domain:XXXXX.com
# Authentication:: Login
# user_name:
# password:xxxxxx
Development:
Delivery_method:: SMTP
Smtp_settings:
Address:mail. Xxxxx
Port:25
Domain:XXXXX.com
# Authentication:: Login
# user_name:
# password:xxxxxx
Note that the three lines of information that are logged off with # are mail server authentication information, but if your users already use domain authentication, they do not need the three lines of information, as I use the internal mail server (MS Exchange), there is no need for authentication. If you are using an external mail server, it is generally required; Set the parameters, then restart the Redmine service, set the account to send the mail in the configuration, and then test
10. If you want to modify the run port (redmine0.8.7) directory of the Redmine service
C:\AppServ\www\redmine\vendor\rails\railties\lib\commands\servers\webrick.rb
OPTIONS = {
The port below can be
Refer to the installation link:
Http://www.cnblogs.com/netflu/archive/2010/03/06/1679626.html
And
Http://redmine.ossxp.com/redmine/documents/10
2010-08-02
This article is from the "Five Corners" blog, please be sure to keep this source http://hi289.blog.51cto.com/4513812/1832553
Remine Windows 2003 installation