2015 Ubuntu latest Redmine installation and configuration

Source: Internet
Author: User
Tags nginx server redmine ruby on rails

Recently need to build a project management platform within the company Redmine, after groping for a day, finally configured successfully, here to share to everyone.

The system of the company server is Ubuntu14.04, and the latest Redmine3.0 is to be installed.

Since Redmine is installed on the Ruby on Rails, the first step is to install Ruby on rails. This section can refer to my previous post, "Ubuntu Ruby on Rails installation and configuration"

After PostgreSQL finishes installing Ruby on Rails, the next step is to install the database. Redmine support Database has MySQL, PostgreSQL, Microsoft SQL Server, SQLite3, I chose MySQL, here in MySQL for example. Execute the following command:

sudo apt-get install mysql-server mysql-client

Then create the user and database:

Mysql-u root-pcreate DATABASE redmine CHARACTER SET UTF8; CREATE USER ' redmine ' @ ' localhost ' identified by ' My_password '; GRANT all privileges on redmine.* to ' redmine ' @ ' localhost ';

Where Redmine is the user name and My_password is the password. After creation, you need to download Redmine source code:

HG clone--updaterev 3.0-stable Https://bitbucket.org/redmine/redmine-all redmine-3.0

When the download is complete, switch to the directory and execute the command:

CP  Config/database.yml.example Config/database.yml

Modify the configuration of the production to:

Production:  adapter:mysql2  database:redmine  host:localhost  username:redmine  password:my_ Password

Next, install the gem's dependencies:

Gem Install Bundlerbundle Install

Note: Before installing, you need to switch the source because the default mirror is inaccessible in the country.

$ gem Sources--remove https://rubygems.org/$ gem sources-a https://ruby.taobao.org/$ gem sources-l*** Current sources * **https://ruby.taobao.org# make sure that only ruby.taobao.org$ gem install Rails

In the implementation of the bundle install process may be error, according to the prompt to solve one by one. Next you need to initialize the database and execute the following command in turn:
Rake generate_secret_tokenrails_env=production Rake db:migraterails_env=production Rake Redmine:load_default_data
Next you need to modify file permissions:

mkdir-p tmp tmp/pdf public/plugin_assetssudo chown-r redmine:redmine files log tmp Public/plugin_assetssudo chmod-r 755 Files Log tmp Public/plugin_assets

Finally execute the command to start the Ruby server:

Ruby Bin/rails Server WEBRICK-E production

At this point, if you are installing Ubuntu Desktop version can be opened through the browser http://127.0.0.1:3000 to view the Redmine page, if the server version, can be viewed through the command w3m:

w3m http://127.0.0.1:3000

If you need to view it on another machine, the only ip+ port number is not viewable because external access does not have port permissions. Workaround you can configure a reverse proxy via Apache or Nginx server.

Here are some workarounds for errors:

1. There was a error while trying to write to Gemfile.lock. It is likely so need to allow write permissions for the file at path:/home/thiago/model/gemfile.lock

Http://stackoverflow.com/questions/17519090/gemfile-lock-write-error-permissions

sudo chown-r $ (whoami): $ (WhoAmI) MyAppFolder

2. No package ' Magickcore ' found
Package Magickcore is not found in the Pkg-config search path.
Perhaps you should add the directory containing ' magickcore.pc '

Http://stackoverflow.com/questions/27204494/unable-to-install-fileutils-rubygem-on-ubuntu-14-04-lts

sudo apt-get install Libmagickwand-dev

3. Installing MYSQL2 (0.3.11) with native extensions
Gem::installer::extensionbuilderror:error:failed to build gem native extension.

Http://stackoverflow.com/questions/10051448/error-failed-to-build-gem-native-extension-mysql2-on-rails-3-2-3

sudo apt-get install mysql-client Libmysqlclient-dev

If you feel that you can help, but also hope to help the top, thank you:)
Personal Blog:http://blog.csdn.net/zhaoxy2850
address of this article:http://blog.csdn.net/zhaoxy_thu/article/details/44310677
Reprint Please indicate the source, thank you!

2015 Ubuntu latest Redmine installation and configuration

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.