Ubuntu 14.04 Installation Redmine

Source: Internet
Author: User
Tags redmine

Company to install the project management system, the use of Redmine, the new I came to do this small task, midway also has several problems, build Redmine, his dependency pack a lot, so I suggest to use apt outfit, the following start.
First upgrade the source

Apt-get Update

Update complete

PS: (if the diagram is convenient, you can choose to install the lamp kit, this means that MySQL and Apache here do not install the kit)
installing a module for apache2 and Apache2
apt-get Install apache2 Libapache2-mod-passenger
installationMySQL

apt-get Install mysql-Servermysql-client

Configure the MySQL database.

The database is MySQL, the library is built for Redmine, and the library name is Redmine. Create a redmine user at the same time, assign permissions to the library to this user. Finally set the user's password to ' 123456 '. Of course, here the library name, user name and password, can be replaced by the actual situation.

MySQL -u root–p

Mysql> createdatabase redmine character set UTF8;

Mysql> Grant Select,insert,delete,update,create,drop,alter,indexon redmine.* to Redmine;

mysql> setpassword for ' redmine ' = PASSWORD (' 123456 ');

Mysql> flushprivileges;

Mysql> exit;


Install Ruby

sudo apt-get install Ruby-full

After installation, perform ruby-v,

Show "Ruby 1.9.3p484 (2013-11-22 revision 43786) [X86_64-linux]"

If you installed the/usr/lib/ruby/1.8 directory below version 1.8, you will need to install the RubyGems

Installing RubyGems

Note: It is not necessary to manually add the Ruby path to path because it has been added, see/usr/bin

sudo apt-get install RubyGems

Execute gem-v, show "1.3.7"

Note: ruby1.9 comes with gems and does not need to be installed again

Installing Rails

sudo apt-get install Rails

Rails-v If error: "Program rails is not installed".

Append export Path=/var/lib/gems/1.8/bin to the user's. bashrc file: $PATH

Note: Should be added to the global environment variable, because some commands, such as rake, need to be executed by the root user


sudo apt-get install Redmine-mysql

This is Redmine's MySQL plugin package.


sudo apt-get install Redmine

In the middle follow the prompts to enter the user password for the root of MySQL, enter the correct to create the MySQL default library, it is important to ensure that the Redmine users in MySQL created.



Run and test Redmine

Redmine default installation directory is/usr/share/redmine, first detect

There are no/usr/share/redmine/log/production.log files, no then set up by directory

Switch to directory/usr/share/redmine

Run command: Ruby Script/rails server WEBRICK-E production

You can start Redmine, which opens port 3000 by default and is accessible via http://localhost:3000/(Admin initial user name and password are admin).

If you want Redmine to run as a service, add the-D parameter: Ruby script/rails server Webrick-e production–d

To modify the port number of the Redmine:

In the Redmine/vendor/rails/railties/lib/commands/servers.rb file:

Options = {

:P ORT = 3000,

: Host = "0.0.0.0″,

: Environment = (env[' rails_env ') | | "Development"). DUP,

: config = rails_root + "/config.ru",

:d Etach = False,

:d Ebugger = False,

:p ath = nil

}


Port is the ports. Change its value to 4000.


Troubleshoot problems with slow access

After installation, the machine runs very smoothly, but with IP access, a page 30 seconds cannot be read out.

Later found to be the default server Webrick problem, need to resolve the host name of the destination address, change the server with a mongrel

Solve

Executing the command gem in terminal install Mongrel

Startup: Ruby Script/rails server Webrick-e production–d


This article is from the "happy Programming _ Endless" blog, please be sure to keep this source http://happyliu.blog.51cto.com/501986/1641696

Ubuntu 14.04 Installation Redmine

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.