Build redmine project management software under Centos5.5

Source: Internet
Author: User
Tags i18n redmine
Redmine is a web-based project management software developed using Ruby. It organizes members, tasks (problems), documents, discussions, and various forms of resources in the form of projects, you are involved in updating tasks, documents, and other content to promote the progress of the project. At the same time, the system uses the time clue (Timeline) and various dynamic reports (Repor ).

REdMine is a web-based project management software developed using Ruby. It organizes members, tasks (problems), documents, discussions, and various forms of resources in the form of a Project, everyone participates in updating tasks, documents, and other content to promote the project progress. At the same time, the system uses the time clue (Timeline) and various dynamic reports (reports) to automatically Report the project progress to members.

Redmine is very powerful:

● Multi-project and sub-project support

● Milestone version tracking

● Configurable user role control

● Configurable problem Tracking System

● Automatic calendar and Gantt Chart Drawing

● Support for Blog-based news publishing, Wiki-based document writing, and file management

● RSS output and email notification

● Independent Wiki andBbs'Target = '_ blank'>ForumModule

● Simple task time tracking mechanism

● Custom attributes are supported for users, projects, and problems.

● Supports binding multiple version control systems (SVN, CVS, Git, Mercurial, and Darcs)

● Supports multi-LDAP User Authentication

● Support user self-registration and user activation

● Multi-language support (built-in zh Simplified Chinese)

● Multi-database support (MySQL, SQLite, PostgreSQL)

● Appearance template customization (you can use Basecamp and Ruby for installation)

 

The following describes how to install Centos 5.5 and how to work with nginx.

 

1. First install some related libraries

Yum groupinstall "Development TooLs"
Yum install zlib-devel wget openssl-devel pcre-devel make gcc-c ++ curl-devel

 

2. Since it is written in ruby, ruby always needs to be installed. The latest version of ruby is 1.9.x, but the latest version of redmine 1.1 only supports version ruby1.8. Therefore, you need to install ruby 1.8.x.
WgetFtp: // Ftp.ruby-lang.org//pub/ruby/ruby-1.8.7-p334.tar.gz
Tar-xvzf ruby-1.8.7-p334.tar.gz
CdRuby-1.8.7-p334
Make-j3
Make install

 

3. Install rubygems, which should be similar to perl's moDuThis is what I understand.

Wget http://production.cf.rubygems.org/rubygems/rubygems-1.5.1.tgz
Tar-zxvf rubygems-1.5.1.tgz
Cd rubygems-1.5.1/
RubySetUp. rb

 

4. install some libraries required for redmine running with gem
Gem install rails
Gem upDate-- System
Gem install rake rack
Gem install i18n
Gem install RedCloth
Gem install fastthread -- no-rdoc -- no-ri
Gem install mysql -- no-rdoc -- no-ri -- with-mysql-dir =/usr/bin -- with-mysql-lib =/usr/lib/mysql -- with-mysql -INcLude =/usr/include/mysql

 

5. Install passenger. passenger is a module of apache or nginx. It can be understood as a proxy used for interaction between apache, nginx, and rails.
Gem install passenger
Passenger-install-nginx-module

 

6. Download redmine

Svn co http://redmine.rubyforge.org/svn/branches/1.1-stable redmine-1.1
Cp-Rf redmine-1.1/home/Httpd/Redmine

 

7. Create a database. I use mysql and redmine also supports other databases.
Mysql-h192.168.1.24-uroot-p
Enter password:
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connectionIdIs 169105
Server version: 5.0.77 Source disTrIbution

Type 'help; 'or' \ H' for help. Type '\ C'ClearThe buffer.

Mysql> create database redmine character set utf8;
Query OK, 1 row affected (0.03 sec)

Mysql> quit
Bye

8. Configure redmine
Cd/home/httpd/redmine/
Cp database. yml.ExAmple database. yml

Modify the configuration file:
Vi database. yml

Production:
Adapter: mysql
Database: redmine
Host: 192.168.1.24
Username: root
Password: password
Encoding: utf8
 

Run the following command:

Cd ..

Rake generate_session_store
Rake db: migrate RAILS_ENV = "production"

If the system prompts that the version is incorrect, install the following:

Gem install-v = 0.4.2 i18n
Gem install-v = 2.3.5 rails

Then run:
RAILS_ENV = production rake db: migrate


If the prompt is:
Rake aborted!
Undefined local variable or method 'version _ requirements '#

Just:
Vi/home/httpd/redmine/config/environment. rb
Add at the beginning:
If Gem: VERSION> = "1.3.6"
Module Rails
Class GemDependency
Def requirement
R = SuPer
(R = Gem: Requirement. default )? Nil: r
End
End
End
End

Start redmine:
Ruby script/server webrick-e production &

Then you can access redmine through http: // ip: 3000 in the browser. The redmine installation is complete.

 

9. Run redmine with nginx

Although redmine can be run in the above method, it is very slow. After analysis, it is mainly slow in http processing.CommandAs you can see, redmine is equivalent to running on a web server written in ruby. Can it be slow...

 

Therefore, you need to use nginx to run redmine. The configuration is also very simple:

Vim nginx. conf

Add the following in http:

Http {
...
Passenger_root/usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.2;
Passenger_ruby/usr/bin/ruby;
...
}

Then add a VM:

Server {
Listen 80;
Server_name www.yourhost.com;
Root/home/http/redmine/public; # configure the public directory under the redmine directory.
Passenger _EnableD on;
}

Restart nginx to access redmine through the domain name.

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.