(18)
http://blog.redmine.jp/articles/4_1/install/ubuntu/
OS: Ubuntu18.04
Redmine: 4.1
PostgreSQL: 10
Apache: 2.4
Ruby: 2.6
--1. ロケールの設定
locale-gen ja_JP.UTF-8
locale -a
--2. 必要なパッケージのインストール
apt update
apt install -y build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev libffi-dev
apt install -y postgresql libpq-dev
apt install -y apache2 apache2-dev
apt install -y imagemagick fonts-takao-pgothic
apt install -y subversion git
--3. Rubyのインストール
curl -O https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.5.tar.gz
tar xvf ruby-2.6.5.tar.gz
cd ruby-2.6.5
./configure --disable-install-doc
make
make install
cd ..
ruby -v
--4. PostgreSQLの設定
sudo -u postgres createuser -P redmine
sudo -u postgres createdb -E UTF-8 -l ja_JP.UTF-8 -O redmine -T template0 redmine
--5. Redmineのインストール
mkdir /var/lib/redmine
chown www-data /var/lib/redmine
sudo -u www-data svn co https://svn.redmine.org/redmine/branches/4.1-stable /var/lib/redmine
vim /var/lib/redmine/config/database.yml
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: "redmine"
encoding: utf8
vim /var/lib/redmine/config/configuration.yml
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "localhost"
port: 25
domain: ""
rmagick_font_path: /usr/share/fonts/truetype/takao-gothic/TakaoPGothic.ttf
cd /var/lib/redmine
sudo -u www-data bundle install --without development test --path vendor/bundle
--6. Redmineの初期設定
sudo -u www-data bin/rake generate_secret_token
sudo -u www-data RAILS_ENV=production bin/rake db:migrate
--7. Passengerのインストール
gem install passenger -N
passenger-install-apache2-module --auto --languages ruby
passenger-install-apache2-module --snippet
--8. Apacheの設定
vim /etc/apache2/conf-available/redmine.conf
<Directory "/var/lib/redmine/public">
Require all granted
</Directory>
LoadModule passenger_module /usr/local/lib/ruby/gems/2.6.0/gems/passenger-6.0.7/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/lib/ruby/gems/2.6.0/gems/passenger-6.0.7
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>
PassengerMaxPoolSize 20
PassengerMaxInstancesPerApp 4
PassengerPoolIdleTime 864000
PassengerStatThrottleRate 10
<Directory /var/lib/redmine/public>
Allow from all
Options -MultiViews
Require all granted
</Directory>
a2enconf redmine
apache2ctl configtest
systemctl reload apache2
--9. Apache上のPassengerでRedmineを実行するための設定
vim /etc/apache2/sites-enabled/000-default.conf
DocumentRoot /var/lib/redmine/public
apache2ctl configtest
systemctl reload apache2
80番ポート、admin/adminでログイン
(10)
http://blog.redmine.jp/articles/4_1/install/ubuntu/
OS: Debian10
Redmine: 4.1
PostgreSQL: 11
Apache: 2.4
Ruby: 2.6
--1. ロケールの設定
locale-gen ja_JP.UTF-8
locale -a
--2. 必要なパッケージのインストール
apt update
apt install -y build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev libffi-dev
apt install -y postgresql libpq-dev
apt install -y apache2 apache2-dev
apt install -y imagemagick fonts-takao
apt install -y subversion git
--3. Rubyのインストール
curl -O https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.5.tar.gz
tar xvf ruby-2.6.5.tar.gz
cd ruby-2.6.5
./configure --disable-install-doc
make
make install
cd ..
ruby -v
--4. PostgreSQLの設定
sudo -u postgres createuser -P redmine
sudo -u postgres createdb -E UTF-8 -l ja_JP.UTF-8 -O redmine -T template0 redmine
--5. Redmineのインストール
mkdir /var/lib/redmine
chown www-data /var/lib/redmine
sudo -u www-data svn co https://svn.redmine.org/redmine/branches/4.1-stable /var/lib/redmine
vim /var/lib/redmine/config/database.yml
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: "redmine"
encoding: utf8
vim /var/lib/redmine/config/configuration.yml
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "localhost"
port: 25
domain: ""
rmagick_font_path: /usr/share/fonts/truetype/takao-gothic/TakaoPGothic.ttf
cd /var/lib/redmine
sudo -u www-data bundle install --without development test --path vendor/bundle
--6. Redmineの初期設定
sudo -u www-data bin/rake generate_secret_token
sudo -u www-data RAILS_ENV=production bin/rake db:migrate
--7. Passengerのインストール
gem install passenger -N
passenger-install-apache2-module --auto --languages ruby
passenger-install-apache2-module --snippet
--8. Apacheの設定
vim /etc/apache2/conf-available/redmine.conf
<Directory "/var/lib/redmine/public">
Require all granted
</Directory>
LoadModule passenger_module /usr/local/lib/ruby/gems/2.6.0/gems/passenger-6.0.7/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/lib/ruby/gems/2.6.0/gems/passenger-6.0.7
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>
PassengerMaxPoolSize 20
PassengerMaxInstancesPerApp 4
PassengerPoolIdleTime 864000
PassengerStatThrottleRate 10
<Directory /var/lib/redmine/public>
Allow from all
Options -MultiViews
Require all granted
</Directory>
a2enconf redmine
apache2ctl configtest
systemctl reload apache2
--9. Apache上のPassengerでRedmineを実行するための設定
vim /etc/apache2/sites-enabled/000-default.conf
DocumentRoot /var/lib/redmine/public
apache2ctl configtest
systemctl reload apache2
80番ポート、admin/adminでログイン
(7)
http://blog.redmine.jp/articles/3_4/install/centos/
OS: CentOS7.9
Redmine: 3.4
PostgreSQL: 9.2
Apache: 2.4
Ruby: 2.4
--1. 必要なパッケージのインストール
yum -y groupinstall "Development Tools"
yum -y install openssl-devel readline-devel zlib-devel curl-devel libyaml-devel libffi-devel
yum -y install postgresql-server postgresql-devel
yum -y install httpd httpd-devel
yum -y install ImageMagick ImageMagick-devel ipa-pgothic-fonts
--2. Rubyのインストール
curl -O https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz
tar xvf ruby-2.4.1.tar.gz
cd ruby-2.4.1
./configure --disable-install-doc
make
make install
cd ..
ruby -v
gem install bundler --no-rdoc --no-ri
--3. PostgreSQLの設定
postgresql-setup initdb
vim /var/lib/pgsql/data/pg_hba.conf
host redmine redmine 127.0.0.1/32 md5
host redmine redmine ::1/128 md5
systemctl start postgresql.service
systemctl enable postgresql.service
cd /var/lib/pgsql
sudo -u postgres createuser -P redmine
sudo -u postgres createdb -E UTF-8 -l ja_JP.UTF-8 -O redmine -T template0 redmine
cd -
--4. Redmineのインストール
svn co https://svn.redmine.org/redmine/branches/3.4-stable /var/lib/redmine
vim /var/lib/redmine/config/database.yml
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: "redmine"
encoding: utf8
vim /var/lib/redmine/config/configuration.yml
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "localhost"
port: 25
domain: ""
rmagick_font_path: /usr/share/fonts/ipa-pgothic/ipagp.ttf
cd /var/lib/redmine
gem uninstall bundler
gem install bundler -v "1.5.0"
bundle install --without development test --path vendor/bundle
--5. Redmineの初期設定と初期データ登録
bundle exec rake generate_secret_token
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production REDMINE_LANG=ja bundle exec rake redmine:load_default_data
--6. Passengerのインストール
gem install passenger -v 5.1.12 --no-rdoc --no-ri
passenger-install-apache2-module --auto --languages ruby
passenger-install-apache2-module --snippet
--7. Apacheの設定
vim /etc/httpd/conf.d/redmine.conf
<Directory "/var/lib/redmine/public">
Require all granted
</Directory>
LoadModule passenger_module /usr/local/lib/ruby/gems/2.4.0/gems/passenger-5.1.12/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/local/lib/ruby/gems/2.4.0/gems/passenger-5.1.12
PassengerDefaultRuby /usr/local/bin/ruby
</IfModule>
PassengerMaxPoolSize 20
PassengerMaxInstancesPerApp 4
PassengerPoolIdleTime 864000
PassengerStatThrottleRate 10
Header always unset "X-Powered-By"
Header always unset "X-Runtime"
systemctl start httpd.service
systemctl enable httpd.service
--8. Apache上のPassengerでRedmineを実行するための設定
chown -R apache:apache /var/lib/redmine
vim /etc/httpd/conf/httpd.conf
DocumentRoot "/var/lib/redmine/public"
service httpd configtest
systemctl restart httpd.service
80番ポート、admin/adminでログイン
- Windows Server
(2019)
http://natushima.hatenablog.com/entry/2016/06/20/224011
http://guide.redmine.jp/RedmineInstall/#windows
OS: Windows Server2019
Redmine: 4.1
PostgreSQL: 11
Ruby: 2.6
使用した資材:
postgresql-11.10-1-windows-x64.exe
rubyinstaller-devkit-2.6.6-2-x64.exe
redmine-4.1.1.zip
--1. PostgreSQLのインストール
パスを通す
C:\Program Files\PostgreSQL\11\bin
ユーザとデータベースを作成する
CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'redmine' NOINHERIT VALID UNTIL 'infinity';
CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine;
--2. Rubyのインストール
--3. Redmineのインストール
--4. データベースに接続するための設定
notepad C:\redmine-4.1.1\config\database.yml
production:
adapter: postgresql
database: redmine
host: 127.0.0.1
username: redmine
password: "redmine"
encoding: utf8
schema_search_path: public
--5. 依存するソフトウェアのインストール
cd C:\redmine-4.1.1
gem -v
gem install bundler
bundle install --without development test
--6. セッションストア秘密鍵の生成
bundle exec rake generate_secret_token
--7. データベースのテーブル等の作成とデフォルトデータの登録
set RAILS_ENV=production
bundle exec rake db:migrate
set RAILS_ENV=production
set REDMINE_LANG=ja
bundle exec rake redmine:load_default_data
--8. WEBrickによるwebサーバを起動
bundle exec rails server webrick -e production
3000番ポート、admin/adminでログイン