redmine の作り方

yum install mysql-server mysql-devel

wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p249.tar.bz2
tar xvfj ruby-1.8.7-p249.tar.bz2
cd ruby-1.8.7
configure --prefix=/usr/local/ruby
make
make install

wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz
tar xvfz rubygems-1.3.6.tgz
cd rubygems-1.3.6
ruby setup.rb

gem install rack --version '~> 1.0.1'
gem install rails
cd /usr/local/bin
ln -s ../ruby/bin/* .

gem install mysql

vi /etc/my.cnf
--------------------------------------------------------------------
[mysqld]
+innodb_file_per_table
+default-character-set=utf8

[mysqld_safe]
+default-character-set=utf8

[mysql]
+default-character-set=utf8
--------------------------------------------------------------------

/sbin/service mysqld start
mysqladmin -u root password 'password'
mysql -u root -p mysql
delete from user where password='';
create database redmine;

vi /etc/httpd/conf/httpd.conf
add 'ServerName xxx.xxx.net:80'
/sbin/service httpd start

wget http://rubyforge.org/frs/download.php/69449/redmine-0.9.3.tar.gz
cd /var/www
tar xvfz redmine-0.9.3.tar.gz
cd /var/www/html
ln -s ../redmine-0.9.3/public redmine

cd /var/www/redmine-0.9.3/config/
cp database.yml.example database.yml
cp email.yml.example email.yml

vi database.yml
-----------------------
production:
  adapter: mysql
  database: redmine
  host: localhost
  username: root
  password: password
  encoding: utf8
-----------------------

セッション暗号化用鍵を生成する
rake config/initializers/session_store.rb

データベースの初期化
rake db:migrate RAILS_ENV=production
rake redmine:load_default_data RAILS_ENV=production


vi email.yml
-----------------------
production:
  delivery_method: :smtp
  smtp_settings:
    address: xxx.xxx.net
    port: 25
    domain: xxx.xxx.net
-----------------------

===> ここまでで一応起動はする
/var/www/redmine-0.9.3/script/server -e production
 admin/admin

### Apache を Frontend にする
 
yum install httpd httpd-devel


gem install passenger
cd /usr/local/bin
ln -s ../ruby/bin/* .
エラーは出るけど無視


passenger-install-apache2-module


下記をメモしておく.後で httpd.conf へ追加.
-----------------------------------------------------------------------
The Apache 2 module was successfully installed.

Please edit your Apache configuration file, and add these lines:

   LoadModule passenger_module /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
   PassengerRoot /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.11
   PassengerRuby /usr/local/ruby/bin/ruby
-----------------------------------------------------------------------

httpd.conf 編集
-----------------------------------------------------------------------
###
LoadModule      passenger_module /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot   /usr/local/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.11
PassengerRuby   /usr/local/ruby/bin/ruby
<Location       "/redmine">
        AllowOverride   all
        Options         -MultiViews
</Location>

RailsBaseURI    "/redmine"
###
-----------------------------------------------------------------------

初期アカウントは admin/admin



---
update at 2018/03/02 22:04:51

※注:当サイトは特定環境において確認できた事象のみを記述しています。他の環境での動作は一切保証しません。