Installation environment: Centos, MySQL, Ruby, Apache, Redmine
Yum Update
Yum-y Groupinstall "Development Tools"
Yum-y install NTP zlib zlib-devel sqlite-devel httpd mysql-server mysql-devel Curl curl-devel httpd-devel apr-devel apr-u Til-devel mlocate manlibxml2-devel libxslt-devel libffi-devel readline-devel
Yum install-y Ruby Ruby-devel
Yum install-y RubyGems
Yum Install–y imagemagick-devel
Turn off SELinux
Setenforce 0
Sed-i "S/selinux=enforcing/selinux=disabled/g"/etc/selinux/config
Sed-i "s/selinuxtype=targeted/#SELINUXTYPE =targeted/g"/etc/selinux/config
Installing RVM
\curl-l Https://get.rvm.io | Bash
source/etc/profile.d/rvm.sh
Turn on 80, 443 ports on the firewall and restart the firewall
Vi/etc/sysconfig/iptables
Install PHP, phpMyAdmin
Yum-y Install PHP php-mysql php-gd php-imap php-ldap php-mbstring php-odbc php-pear php-xml php-xmlrpc PHP-PECL-APC php-s Oap
RPM-IVH http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-8.noarch.rpm
Yum-y Install phpMyAdmin
Vi/etc/httpd/conf.d/phpmyadmin.conf
Replace "Allow from 127.0.0.1" with "Allow from all"
vi/usr/share/phpmyadmin/config.inc.php
Replace $cfg [' Servers '] [$i] [' auth_type '] = ' cookie ' with $cfg [' Servers '] [$i] [' auth_type '] = ' http ';
Recommended installation documentation for reference
Http://www.redmine.org/projects/redmine/wiki/Install_Redmine_25x_on_Centos_65_complete
http://blog.csdn.net/win_lin/article/details/8514333
Http://blog.tonycube.com/2013/11/redmine-centos-apache-ruby-on-rails.html
The following are some of the recommended solutions to the problems encountered
http://stackoverflow.com/questions/22571206/netbeans-and-rails-error-bin-ruby-no-such-file-or-directory-script-rails-
Migration methods
https://ruby-china.org/topics/8340
Skills
A, the default need to add port 3000 to be accessible, the workaround is added in vhost.conf:
Proxypass/http://localhost:3000/
Proxypassreverse/http://localhost:3000/
B. Send mail
http://blog.csdn.net/maktub_haixue/article/details/39394111
C, Boot and script
http://www.vipzhicheng.com/blog/2014/04/09/install-redmine-on-centos/
#!/bin/bash# Modify it to your configurationdir=/var/www/html/redmine/# Start RedmineinchDaemon Mode.start () {CD $DIR Ruby script/rails server-d-e production}# Stop Redmine daemonstop () {rubypid=`PSAux |grep "Ruby Script/rails"|grep-Vgrep|awk '{print $}'` if["X$rubypid"!="x"]; Then Kill-2$RUBYPIDfi}# CheckifRedmine is Runningstatus () {rubypid=`PSAux |grep "Ruby Script/rails"|grep-Vgrep|awk '{print $}'` if["X$rubypid"="x"]; Then Echo "* Redmine is not running" Else Echo "* Redmine is running" fi} Case " $" inchstart) Start status;; Stop) StopSleep 2status;; status) status; Restart|force-reload) stop start;; *) Echo "Usage: $ {start|stop|restart|force-reload|status}"Exit1Esac
View Code
CentOS Install Redmine (Project management tool)