1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

debian12へredmineをインストールする

Posted at

概要

debian12へパッケージ版のredmineをインストールする。

前提

debian12がインストールされており、SSHが使用できる状態になっている。
初期にインストールしたパッケージはSSHと標準システムユーティリティのみ。
image.png

ホスト名 : rdserver
新しいユーザの本名 : rdadmin
あなたのアカウントのユーザ名 : rdadmin

前準備

  • sudoをインストールしてrdadminをsudoグループに追加
root@rdserver:/home/rdadmin# apt -y install sudo
root@rdserver:~# /sbin/usermod -aG sudo rdadmin

※rdadminでログインしなおす。

  • postgresqlをインストール
rdadmin@rdserver:~$ sudo apt -y install postgresql

redmineのインストール

  • redmine、必要なパッケージのインストール
rdadmin@rdserver:~$ sudo apt -y install redmine-pqsql
rdadmin@rdserver:~$ sudo apt -y install apache2 libapache2-mod-passenger bundler imagemagick libmagick++-dev

image.png
はい を選択。

image.png
localhost を選択。

image.png
pgsql1234 を設定。(ブランクでいい?)

  • passenger.conf
    rdadmin@rdserver:~$ sudo vi /etc/apache2/mods-available/passenger.conf
passenger.conf
<IfModule mod_passenger.c>
  PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
  PassengerDefaultRuby /usr/bin/ruby
  PassengerDefaultUser www-data
  RailsBaseURI /redmine
</IfModule>

  • 000-default.conf
    rdadmin@rdserver:~$ sudo vi /etc/apache2/sites-enabled/000-default.conf

DocumentRootからディレクトリ設定までを変更

000-default.conf
<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
#       DocumentRoot /var/www/html

        DocumentRoot /usr/share/redmine/public
        PassengerHighPerformance on
        <Directory /usr/share/redmine/public>
                AllowOverride None
                Options FollowSymlinks
        </Directory>

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

  • apache の再起動
rdadmin@rdserver:~$ sudo systemctl restart apache2
  • ブラウザからアクセスし、redmine のページが開くことを確認
    adminユーザのデフォルトパスワードはadmin。
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?