CentOS Stream 9
Sponsored Link

Redmine : Install2023/12/06

Install Redmine which is the Project Management Tool.
On this example, SELinux is configured Permissive or Disabled.
[5] Install other requited packages.
# install from EPEL, CRB

[root@dlp ~]#
dnf --enablerepo=epel,crb -y install ruby-devel postgresql-server-devel openssl-devel libxslt-devel libxml2-devel libcurl-devel zlib-devel httpd-devel gcc gcc-c++ make patch rpm-build ImageMagick ImageMagick-devel

[6] Create a user and database for Redmine on PostgreSQL.
[root@dlp ~]#
vi /var/lib/pgsql/data/pg_hba.conf
# line 87 : change like follows

#host    all             all               ident
#host    all             all             ::1/128                 ident
host    all             all               scram-sha-256
host    all             all             ::1/128                 scram-sha-256

[root@dlp ~]#
systemctl restart postgresql

# set any password for [password] section

[root@dlp ~]#
su - postgres

[postgres@dlp ~]$
createuser redmine

[postgres@dlp ~]$
createdb redmine -O redmine

[postgres@dlp ~]$
psql -c "alter user redmine with password 'password'"

[7] Download and install Redmine. Make sure the latest version on the site below.
⇒ http://www.redmine.org/projects/redmine/wiki/Download
[root@dlp ~]#
curl -O https://www.redmine.org/releases/redmine-5.1.1.tar.gz

[root@dlp ~]#
tar zxvf redmine-5.1.1.tar.gz

[root@dlp ~]#
mv redmine-5.1.1 /var/www/redmine

[root@dlp ~]#
cd /var/www/redmine

[root@dlp redmine]#
vi config/database.yml
# create new

  adapter: postgresql
  # database name
  database: redmine
  host: localhost
  # database user
  username: redmine
  # database user' password
  password: password
  encoding: utf8

[root@dlp redmine]#
vi config/configuration.yml
# create new (SMTP settings)

# replace to your own language font for [rmagick_font_path] section

    delivery_method: :smtp
      address: "localhost"
      port: 25
      domain: 'dlp.srv.world'
  rmagick_font_path: /usr/share/fonts/google-droid/DroidSansJapanese.ttf

# install bundler

[root@dlp redmine]#
gem install bundler

# install Gems for Redmine

[root@dlp redmine]#
bundle config set --local without 'development test mysql sqlite'

[root@dlp redmine]#
bundle install

# generate keys

[root@dlp redmine]#
bundle exec rake generate_secret_token

# generate tables

[root@dlp redmine]#
bundle exec rake db:migrate RAILS_ENV=production

# install Passenger

[root@dlp redmine]#
gem install passenger

# install modules for Apache2

[root@dlp redmine]#

Welcome to the Phusion Passenger Apache 2 module installer, v6.0.19.

This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.

Here's what you can expect from the installation process:

 1. The Apache 2 module will be installed for you.
 2. You'll learn how to configure Apache.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.


Deploying a web application

To learn how to deploy a web app on Passenger, please follow the deployment


Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-)

Passenger is a registered trademark of Phusion Holding B.V.
[8] Configure httpd to run Passenger. On this example, Set VirtualHost for Redmine.
[root@dlp redmine]#
vi /etc/httpd/conf.d/passenger.conf
# create new

LoadModule passenger_module /usr/local/share/gems/gems/passenger-6.0.19/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/share/gems/gems/passenger-6.0.19
PassengerDefaultRuby /usr/bin/ruby
SetEnv LD_LIBRARY_PATH /usr/lib64

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName redmine.srv.world
    DocumentRoot /var/www/redmine/public

<Directory "/var/www/redmine/public">
    Options FollowSymLinks
    AllowOverride All

[root@dlp redmine]#
chown -R apache:apache /var/www/redmine

[root@dlp redmine]#
systemctl restart httpd

[9] Access to the URL you configured on httpd, then Redmine index is shown like follows. Click [Sing in] link.
[10] Login with the initial username/password [admin/admin].
[11] After initial login, changing password is required.
[12] After changing password, setting of account information is required, input them.
[13] That's OK, Create Projects and use Redmine.
Matched Content