Installing Redmine on Linux

Source: Internet
Author: User
Tags phpmyadmin redmine

Install the basic Software environment
Yum Install GCC GCC  Make Perl Perl-digest-sha
Installing Apache
Yum Install httpd

Set up your own startup and start the Apache service

Service httpd Start
Install MySQL

Add MySQL Source

# RPM-UVH http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm

Install MySQL

Yum Install Mysql-community-server

Set up your own startup and start the MySQL service

Service mysqld Start

To view the root temporary password generated after installation is complete

grep ' Temporary password ' /var/log/mysqld.log

Running MySQL Security configuration

# mysql_secure_installation
Installing PHP and phpMyAdmin

Installing PHP and related expansion packs

Yum Install php php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc php-pecl-apc php -soap

Installing phpMyAdmin

# RPM-UVH http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm  Yuminstall phpMyAdmin

Modify the phpMyAdmin virtual directory configuration file to allow remote access

VI /etc/httpd/conf.d/phpmyadmin.conf

Modify "Allow from 127.0.0.1" to "Allow from all"

Modifying the phpMyAdmin configuration file

VI /usr/share/phpmyadmin/config.inc.php

Change the authentication mode ' cookie ' to ' http '

$cfg ['Servers'] [$i] ['auth_type'http ';

Restart Apache Service

# Service httpd Restart
Install Ruby

Install Ruby version Manager RVM

# \curl-l https://Get.rvm.io | bash
# source/etc/profile.d/rvm.sh

List all Ruby versions

# RVM List known

Install stable version of Ruby (currently 2.3)

Install 2.3

Check Ruby version

# ruby-v
Installing passenger
Install passenger# passenger-Install-apache2-module

After the command finishes, follow the prompts to configure the passenger virtual directory file

$ sudo vi/etc/httpd/conf.d/passenger.conf

LoadModule Passenger_module/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.28/buildout/apache2/mod_ Passenger.so
<ifmodule mod_passenger.c> passengerroot/usr/local/rvm/gems/ruby-2.3.1/gems/passenger-5.0.28 passengerdefaultruby/usr/local/rvm/gems/ruby-2.3.1/wrappers/Ruby</IfModule>

Restart Apache Service

sudo service httpd restart
Create a database for Redmine

Log in to MySQL

# mysql-u Root-p

Making the relevant database configuration

mysql> CREATE database redmine_db character set UTF8; ' Redmine '@'localhost'your_new_password'; ' Redmine '@'localhost';
Installing Redmine

Download Redmine

# cd/var/wwwwget https://www.redmine.org/releases/redmine-3.2.2.tar.gz

Unzip and rename the folder

tar xfz redmine-3. 2. 2. Tar  mv redmine-3. 2. 2 redmine# rm -rf redmine-3. 2. 2. tar. gz

Configuring the Redmine Database

# cd/var/www/redmine/configcp database.yml.example database.yml

# VI Database.yml

production:  adapter:mysql2  database:redmine_db  host:localhost  username:redmine   " Your_new_password "   Encoding:utf8
Installing Rails
# cd/var/www/installinstallrake Generate_secret_token
Create a Redmine database table
rails_env=production rake db:migraterails_env=production rake redmine:load_default_data
Activating fcgi
# cd/var/www/redmine/publicmkdircpCP Htaccess.fcgi.example . htaccess
Installing mod_fcgi
# RPM-UVH http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # Yum Install mod_fcgid
Create a data file directory
mkdir -p/opt/redmine/chown -Rapache:apache/opt/  /var/www/redmine/ CP Configuration.yml.example configuration.yml

# VI Configuration.yml

Attachments_storage_path:/opt/redmine/files
Configure Email

# VI/VAR/WWW/REDMINE/CONFIG/CONFIGURATION.YML

Email_delivery:   delivery_method:: SendMail
Create a virtual directory for Redmine

# vi/etc/httpd/conf.d/redmine.conf

 for redmine# " /var/www/redmine/public >  Options Indexes execcgi followsymlinks  Order allow,deny  allow from all allowoverrideall </Directory>/redmine/var/www/redmine//redmine/var/www/redmine /public
Start Redmine
# cd/var/chown -chmod755  redmine# service httpd restart 

Install Redmine on Linux

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.