Thứ Năm, 11 tháng 6, 2015

Centos 6.5: Redmine installation

Check Apache 2.2 and MySQL 5.x is installed.

curl -L get.rvm.io | bash -s stable
    if get error about import cert, see note and import with its document.
    in my case, I run:
        gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
after that, run its "source" command like the following command:
    source /etc/profile.d/rvm

rvm reload
rvm install 2.1 # it will check version 2.1.x

rvm use 2.1.x --default # 2.1.x is installed

yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel

gem install passenger
passenger-install-apache2-module

add /etc/httpd/conf.d/passenger.conf
with content is print after install passenger

If get error "mod_passenger.so: cannot open shared object file: Permission denied"
try stopping SELinux and restart httpd: sudo setenforce 0

or run:
passenger-config --root # get passenger folder path
chcon -R -h -t httpd_sys_content_t /{passenger folder path}

cd /var/www
wget http://www.redmine.org/releases/redmine-2.5.0.tar.gz
tar xvfz redmine-2.5.0.tar.gz
mv redmine-2.5.0 redmine

cd /var/www/redmine

gem install bundler
bundle install
If get error like "checking for outdated ImageMagick version (<= 6.4.9)... *** extconf.rb failed ***"
run: yum install ImageMagick-devel ImageMagick-c++-devel

and then, re-run command: bundle install

Other steps, you can follow link:
http://www.redmine.org/projects/redmine/wiki/install_Redmine_25x_on_Centos_65_complete

Note:
I move redmine to /var/www/html/redmine
And edit file /etc/httpd/conf.d/redmine.conf like that:
<VirtualHost *:80>
  ServerName swearing.com
  DocumentRoot /var/www/html

  PassengerAppRoot /var/www/html/redmine
  RailsBaseURI /redmine
  Alias /redmine /var/www/html/redmine/public
</VirtualHost>






- Comments

0 nhận xét:

Đăng nhận xét