国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
How to Install Redmine on CentOS (Detailed)

How to Install Redmine on CentOS (Detailed)

Introduction

I spent a fair bit of time looking for a good issue tracking / project management solution. Having considered extensively both open source and commercial solutions (up to about $200/month price range like Jira+Confluence and Zoho Projects) I decided to go with Redmine as it offers a good mix of issue tracking and project management capability, most specifically status workflows, sub-tasking and task dependencies and everything else we need.

However, when I decided to deploy Redmine I encountered numerous difficulties, as at my workplace we use PHP and are not familiar with Ruby on Rails and setting up Ruby on Rails for anyone not familiar with it is rather difficult, largely due to the various version dependencies and incompatibilities and lack of decent detailed documentation on how to do it. I managed to setup Redmine on Windows XP using MySQL, Apache and Mongrel, but when I tried to install the same setup on Windows Server 2008 I encountered all sorts of issues with RoR and MySQL, so I decided to setup on CentOS, which is what we use for our production web hosting anyway.

CentOS is one of the most frequently chosen Linux operating systems for Linux based production environments. There is extensive documentation available on setting up CentOS and it is arguably the best choice for deploying and running production Linux servers for organisation with all levels of in-house Linux server deployment and administration capability.

Redmine is one of the best (if not THE best) open source issue tracking and project management applications, but because it is developed using Ruby on Rails it can be rather complex to deploy for anyone not familiar with the Ruby on Rails environment.

This How-To provides detailed steps required to get Redmine up and running on a CentOS operating system using the following components:
  • Apache web server
  • MySQL database management system
  • Ruby on Rails
  • Mod Passenger Apache module

The How-To provides detailed instructions on the installation and explains what each step does, so that it can be easily follows by people experienced and new to the Ruby on Rails environment.

Assumptions

  • CentOS is installed and works
  • Apache is installed and works
  • MySQL is installed and works
  • Your are logged as root
  • The next steps are done successively without errors

Installation Instructions

Install gem and passenger dependencies

yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel

Get Ruby

# Create the directory where you will store the Downloadsmkdir ~/Downloads # This can be any directory.# Change to directory where you will store the downloadcd ~/Downloads # This can be any directory.# FTP to where you will download ruby from.# When asked to login use user/password of anonymous/anonymousftp ftp.ruby-lang.org Name (ftp.ruby-lang.org:root): anonymousPassword: anonymousftp> cd /pub/rubyftp> get ruby-1.8.7-pXXX.tar.gzftp> quit# You have now downloaded ruby and need to untar ittar zxvf ruby-1.8.7-pXXX.tar.gz# Compile rubycd ruby-1.8.7-pXXX./configuremakemake install# Verify ruby installationruby -vwhich ruby# Change back into your downloads directorycd ..

Get Gems 1.4.2 (does not work with Gems 1.5)

wget http://production.cf.rubygems.org/rubygems/rubygems-1.4.2.tgztar zxvf rubygems-1.4.2.tgzcd rubygems-1.4.2ruby setup.rbgem -vwhich gemcd ..

Install Passenger (requires gcc)

gem install passengerpassenger-install-apache2-module

An alternate method is to install mod_passenger RPM for Apache from the following location:
http://passenger.stealthymonkeys.com/

RHEL/CentOS 5

rpm -Uvh http://passenger.stealthymonkeys.com/rhel/5/passenger-release.noarch.rpmyum install mod_passenger

RHEL/CentOS 6

rpm --import http://passenger.stealthymonkeys.com/RPM-GPG-KEY-stealthymonkeys.ascyum install http://passenger.stealthymonkeys.com/rhel/6/passenger-release.noarch.rpmyum install mod_passenger

Restart Apache

service httpd restart

Download Redmine

Download page: http://rubyforge.org/frs/?group_id=1850

wget http://rubyforge.org/frs/download.php/75597/redmine-1.3.0.tar.gz  # GET LATEST VERSION ON RUBYFORGEtar zxvf redmine-1.3.0.tar.gz

Copy the folder to its HTTP document root folder

cp -av redmine-1.3.0/* /var/www/redmine

Configure Apache to host the documents

more information can be found here: HowTo configure Apache to run Redmine

Install Bundler

gem install bundler

Add the Bundler Boot and preinitializer code

For more info go to the Bundler site.

Create the Gemfile and register these gems in it

vi /var/www/redmine/Gemfile
# file: /var/www/redmine/Gemfilesource "http://rubygems.org" gem "rake", "0.8.3" gem "rack", "1.1.0" gem "i18n", "0.4.2" gem "rubytree", "0.5.2", :require => "tree" gem "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRaygem "mysql" gem "coderay", "~>0.9.7" 
bundle install

Create the Redmine MySQL database

yum install mysql-serverchkconfig mysqld onservice mysqld start/usr/bin/mysql_secure_installation

For MySQL:
start the mysql client (mysql -u root -p) and enter the following commands

create database redmine character set utf8;create user 'redmine'@'localhost' identified by 'my_password';grant all privileges on redmine.* to 'redmine'@'localhost'; 

For versions of MySQL prior to 5.0.2 - skip the 'create user' step and instead:

 grant all privileges on redmine.* to 'redmine'@'localhost' identified by 'my_password';

Configure /var/www/redmine/config/database.yml (rename database.yml.example)

Set the production environment (optional)

Uncomment the following line in file redmine/config/environment.rb:

ENV['RAILS_ENV'] ||= 'production'

Generate the session store

RAILS_ENV=production bundle exec rake generate_session_store

Migrate the database models

RAILS_ENV=production bundle exec rake db:migrate

Load default data (optional)

RAILS_ENV=production bundle exec rake redmine:load_default_data

Follow instructions.

Rename dispatch CGI files in /var/www/redmine/public/

mv dispatch.cgi.example dispatch.cgimv dispatch.fcgi.example dispatch.fcgimv dispatch.rb.example dispatch.rb

Edit .htaccess file for CGI dispatch configuration

mv htaccess.fcgi.example .htaccess

Chown and Chmod files for read/write access for the Apache user

cd ..chown -R apache:apache redmine-1.xchmod -R 755 redmine-1.x

Redmine should be fully installed now and fully usable

Enjoy!

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
HowTo Install Redmine in a sub-URI on Windows with Apache
CentOS系統(tǒng)安裝Redmine項(xiàng)目管理方法
Wang Zhe's Blog | CentOS下部署Redmine項(xiàng)目管理系統(tǒng)
Redmine安裝完全圖文指南
在Windows下安裝Redmine
在Windows下安裝Redmine,上海軟件開發(fā)|上海軟件開發(fā)公司|軟件定制|ERP開發(fā)...
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服