続き。
1. mySQL server の準備
管理者で mysql にlogin
# mysql -p
mysql> create database redmine character set utf8;
Query OK, 1 row affected (0.00 sec)
 
mysql> create user 'redmine'@'localhost' identified by 'redmineのぱすわーど'
    -> ;
Query OK, 0 rows affected (0.00 sec)
 
mysql> grant all privileges on redmine.* to 'redmine'@'localhost';
Query OK, 0 rows affected (0.00 sec)
2. redmine のinstall
% tar xvf redmine-1.2.3.tar.gz % cd redmine-1.2.3/config % cp database.yml.example database.yml % vi database.yml production: adapter: mysql database: redmine host: localhost username: redmine password:レッドマインユーザのパスワード encoding: utf8 % rake config/initializers/session_store.rb % RAILS_ENV=production rake db:migrate % RAILS_ENV=production rake redmine:load_default_data
3. redmine のテスト環境でチェック
うまくinstallできたか、チェック環境でテストする。% ruby script/server webrick -e production
違う端末から、lynxでlocalhost:3000 にアクセス
% lynx http://localhost:3000/
4. Apache+Passenger のinstall
# yum install httpd-devel # gem install passenger # passenger-install-apache2-module
apache のconf を書き換えて、再起動。
< VirtualHost *:80 > 
    LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.11
    PassengerRuby /usr/bin/ruby
 
    ServerName redmine のdomain name
    DocumentRoot redmine1.2 を展開したディレクトリ/public
    < Directory redmine1.2 を展開したディレクトリ/public > 
         AllowOverride all
         Options -MultiViews
    < /Directory > 
< /VirtualHost > 
                  
                
コメント