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.
- Install Web server
- Install Ruby and RubyGems
- Install Passenger
- 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 http://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/ius-release-1.0-11.ius.el6.noarch.rpm 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 wget files.acpaneltech.com/MariaDB.repo 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 https://rvm.io/mpapis.asc | gpg --import - curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh rvm reload
Confirm RVM is properly installed. rvm requirements run
Install Ruby
rvm install 2.3.3 ( Find the lastest version from https://www.ruby-lang.org/en/downloads/ ) rvm use 2.3.3 --default
So the above steps will install Ruby and Ruby Gems.
3. Install Passenger
gem install passenger passenger-install-apache2-module
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/mod_passenger.so <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 </IfModule>
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