Install redmine on Ubuntu 14.04

Source: Internet
Author: User
Tags redmine

The company wants to install the Project Management System and adopt redmine. The new company will do this small task. There are also several problems in the middle. To build redmine, there are many dependent packages, so I suggest using apt. Let's get started.

First, upgrade the source

Apt-Get update

Apt-Get upgrade

Update complete

PS: (if it saves time, you can install the lamp suite. Here MySQL and Apache are installed without a suite)

Install a module of apache2 and apache2

Apt-Get install apache2 libapache2-mod-passenger

Install MySQL

Apt-Get install mysql-server mysql-Client

Configure the MySQL database.

The database is mysql. It creates a database for redmine and the database name is redmine. Create a redmine user and assign the database permission to the user. Finally, set the user's password to 'simple1921 '. Of course, the database name, user name, and password can be replaced according to 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 ('simple1921 ');

Mysql> flushprivileges;

Mysql> exit;

Install the redmine main program and MySQL-based modules

Apt-Get install redmine-MySQL

During this period, you will be asked to enter the MySQL password to select the database type, and so on (PS: how to upload the image)

Configure the redmine Database

First

Cpconfig/database. yml. Example config/database. yml (if not, create one)

Vim database. yml

The production configuration is as follows. Replace the database, username, and password as needed.

Production:

Adapter: mysql2

Database: redmine

HOST: localhost

Username: redmine

Password: "666666"

Encoding: utf8

Then edit the Apache configuration

Vim/etc/apache2/mod-available/passenger. conf

 

Add passengerdefaultuser www-Data

Create a connection

Ln-S/usr/share/redmine/Public // var/www/redmine

Edit Configuration

Vim/etc/apache2/sites-available/default-ssl.conf

Add

<Directory/var/www/redmine>

Railsbaseuri/redmine

Passengerresolvesymlinksindocumentroot on

</Directory>

Start redmine

Run this command in the installation directory of CD to redmine to start it. (use nohup to run it in the background &)

Rubyscript/rails server webrick-e production-d


This article from the "network engineering topics" blog, please be sure to keep this source http://zyhzb.blog.51cto.com/3103241/1431464

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.