Last active
December 11, 2015 21:38
-
-
Save seikai/4663589 to your computer and use it in GitHub Desktop.
Redmineインストールメモ
環境:CentOS6.3 / Ruby1.9.3-p362 / Apache+Passenger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/sysconfig/selinux | |
setenforce 0 | |
getenforce | |
vi /etc/sysconfig/iptables | |
/etc/init.d/iptables restart | |
yum upgrade | |
yum update | |
yum groupinstall "Development Tools" | |
yum install -y openssl-devel readline-devel zlib-devel curl-devel libyaml-devel | |
yum install -y mysql-server mysql-devel | |
yum install -y httpd httpd-devel | |
yum install -y ImageMagick ImageMagick-devel | |
cd /usr/local/src | |
#libyaml | |
curl -L -O http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz | |
tar -zxvf yaml-0.1.4.tar.gz | |
cd yaml-0.1.4 | |
./configure | |
make | |
make install | |
gem install bundler --no-rdoc --no-ri | |
cd ../ | |
#ruby-1.9.3-p362 | |
curl -L -O ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p362.tar.gz | |
ll | |
tar zxvf ruby-1.9.3-p362.tar.gz | |
cd ruby-1.9.3-p362 | |
./configure --disable-install-doc | |
make | |
yum install ipa-pgothic-fonts | |
make install | |
ruby -v | |
cd ../ | |
gem install bundler --no-rdoc --no-ri | |
#mysql settings | |
vi /etc/my.cnf | |
service mysqld start | |
chkconfig mysqld on | |
mysql -uroot | |
#redmine本体 | |
curl -L -O http://rubyforge.org/frs/download.php/76677/redmine-2.2.1.tar.gz | |
tar -zxvf redmine-2.2.1.tar.gz | |
mv redmine-2.2.1 /var/lib/redmine | |
cd /var/lib/redmine | |
#redmine settings | |
#adapterがmysql2であることに注意 | |
#あとはこの辺を参考にhttp://redmine.jp/config/configuration_yml/ | |
cp config/configuration.yml.example config/configuration.yml | |
vi config/configuration.yml | |
cp config/database.yml.example config/database.yml | |
vi config/database.yml | |
bundle install --without development test postgresql sqlite | |
bundle exec rake generate_secret_token | |
RAILS_ENV=production bundle exec rake db:migrate | |
#passenger 最後にApacheのモジュール設定の記述が出るのでそれをコピー | |
gem install passenger --no-rdoc --no-ri | |
passenger-install-apache2-module | |
#apache settings | |
#この辺を参考にhttp://blog.redmine.jp/articles/2_2/installation_centos/ | |
vi /etc/httpd/conf.d/passenger.conf | |
chown -R apache:apache /var/lib/redmine | |
ln -s /var/lib/redmine/public /var/www/html/redmine | |
service httpd start | |
chkconfig httpd on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment