CentOS6.2 Redmine installation tutorials

Source: Internet
Author: User
Tags install openssl install node redmine ruby on rails

After a day of hard work, I finally set up Redmine on the server. This article records the construction process and various problems encountered during the process.

First need to install Ruby on rails, find a lot of installation instructions online, this best: http://blog.sina.com.cn/s/blog_73d38dbc0100zj7n.html thanks to the original author.

Use the method in this article to successfully install ruby. The following describes how to install ruby.

1. delete old ruby,Yum erase ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs

2 wget http://nodejs.org/dist/v0.6.6/node-v0.6.6.tar.gz
Wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
Wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
Wget http://www.sqlite.org/sqlite-autoconf-3070900.tar.gz
3. install some basic packages
Yum install openssl-devel zlib-devel gcc-c ++ make autoconf readline-devel curl-devel expat-devel gettext-devel
4. Install Node
Tar-zxf node-v0.6.6.tar.gz
Cd node-v0.6.6
./Configure
Make
Make install
5. Install yaml
Tar-zxf yaml-0.1.4.tar.gz
Cd yaml-0.1.4
./Configure-prefix =/usr/local
Make
Make install
6. Install ruby
Tar-zxf ruby-1.9.3-p0.tar.gz
Cd ruby-1.9.3-p0
./Configure-prefix =/usr/local-enable-shared-enable-pthread-disable-install-doc-with-opt-dir =/usr/local/lib
Make
Make install
7. Install rails
Gem install rails
8
Yum install ruby-devel
Yum install sqlite-devel
9 install sqlite3
Tar-zxf sqlite-autoconf-3070900.tar.gz
Cd sqlite-autoconf-3070900
./Configure
Make
Make install

After Ruby is installed, you need to follow the steps on the Redmine official website to install it step by step. The installation documents on the official website are here:

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

Below I will streamline it

1. Obtain the source code. You can download the redmine release from the following page. decompress the CD file to the root directory of the redmine source code.

Http://rubyforge.org/frs? Group_id = 1850

2. Configure mysql (if other databases are used, refer to the installation instructions on the official website)

If mysql is not installed, you can use

Yum install mysql

Yum install mysql-server

Yum install mysql-devel

Install mysql, start mysql, and set the root password

Service mysqld start

Mysql

Set password for 'root' @ 'localhost' = PASSWORD ('secret _ password ');

The configuration required by mysql is as follows (Create a database and a user)

CREATE DATABASE redmine CHARACTER SET utf8;CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';

3. Copy config/database. yml. example to config/database. yml and edit the production part. Use the following configurations for ruby1.9 +:

production:  adapter: mysql2  database: redmine  host: localhost  username: redmine  password: my_password

4. Run the following commands in the redmine root directory in sequence:

gem install bundlerbundle install --without development testrake generate_secret_tokenRAILS_ENV=production rake db:migrateRAILS_ENV=production REDMINE_LANG=zh rake redmine:load_default_data

Note:

There will be some errors when executing the second command. I encountered two

One is mysql. h missing. This is because I didn't install the mysql-devel package. Just install yum directly.

The other is Can't install RMagick 2.13.1. You need to install a library: yum install ImageMagick-devel.

In the last command, REDMINE_LANG = zh is the set language. Here I set it to Chinese.

5. Start

ruby script/rails server webrick -e production

After the command is started, the redmine access address is: http: // localhost: 30

If you need access from other machines, set port 3000 as the exception port of the firewall. The access address is http: // IP: 3000.

The super administrator username and password are admin/admin.


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.