Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SPOSTARBUST_Widget_Class has a deprecated constructor in /home2/cptech/public_html/wp-content/plugins/spostarbust/index.php on line 386

Deprecated: Function create_function() is deprecated in /home2/cptech/public_html/wp-content/plugins/spostarbust/index.php on line 611

Notice: The called constructor method for WP_Widget in SPOSTARBUST_Widget_Class is deprecated since version 4.3.0! Use
instead. in /home2/cptech/public_html/wp-includes/functions.php on line 4514
How to install redmine in CentOS7 | A cPanel Tech

How to install redmine in CentOS7

Redmine is one of the most commonly used project management tool. Since it is on RoR, it is assumed to be very stable and reliable. Here I am installing Redmine on a CentOS 7 Server, with Apache as the web server.

This is the basic procedure.

  1. Install Web server
  2. Install Ruby and RubyGems
  3. Install Passenger
  4. Setup redmine

Install WebServer

Most of the steps were take from my WP server set up Post, but there is no varnish or Nginx, instead i used apace.

yum update
 yum -y install wget lsof mailx nano rsync perl epel-release
 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
 yum -y install gcc
 rpm -Uvh
 yum install  httpd24u httpd24u-devel httpd24u-mod_ssl php56u php56u-opcache php56u-mbstring php56u-xmlrpc php56u-pear php56u-pecl php56u-gd php56u-soap php56u-fpm php56u-pecl php56u-cli php56u-xml php56u-common php56u-devel php56u-mcrypt php56u-intl php56u-pdo php56u-mysqlnd php56u-imap php56u-bcmath php56u-process php56u-json
 /bin/systemctl restart  httpd.service
 mv MariaDB.repo /etc/yum.repos.d/
 yum install MariaDB-server MariaDB-client

You will need t set up the mysql root password. PHP is not really needed if your server is going to have Redmine alone. I installed it as this server was going to host some php apps too.

Set up Ruby and Ruby Gems

I am going to install ruby through RVM which seem to be easier for managing Ruby!

yum install gcc-c++ patch readline readline-devel zlib zlib-devel
yum install libyaml-devel libffi-devel openssl-devel make
yum install bzip2 autoconf automake libtool bison iconv-devel sqlite-devel

Install RVM

curl -sSL | gpg --import -
curl -L | bash -s stable
source /etc/profile.d/
rvm reload
Confirm RVM is properly installed. 

rvm requirements run
Install Ruby

rvm install 2.3.3  ( Find the lastest version from ) 
rvm use 2.3.3 --default

So the above steps will install Ruby and Ruby Gems.

3. Install Passenger

gem install passenger 

It will prompt you to amend the httpd configuration and add the following lines.

LoadModule passenger_module /usr/local/rvm/gems/ruby-2.3.3/gems/passenger-5.0.30/buildout/apache2/ 
<IfModule mod_passenger.c> 
PassengerRoot /usr/local/rvm/gems/ruby-2.3.3/gems/passenger-5.0.30 
PassengerDefaultRuby /usr/local/rvm/gems/ruby-2.3.3/wrappers/ruby 

You can add it to a passenger.conf file in conf.d and restart apache. These are the basic steps that you need to run before installing redmin in a CentOS machine

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu