How to install and configure redmine on centos 6

How to install and configure redmine on centos 6


How to install and configure redmine on centos 6. I'm running commands as root account!
Links to below you maybe likes:
How to install php7 on centos 6
How to install and configure redmine on centos 6
How to owncloud 9 install ssl certificate centos 7
How To Install the BIND DNS Server on CentOS 6
KeepAlived IP Failover on CentOS & Red Hat
To require install redmine on centos 6
  • CentOS is installed and works
  • Nginx   is installed and works
  • MySQL is installed and works
  • Your are logged as root
To install the the dependence packages
yum update
yum install -y wget gcc gcc-c++ mysql-server mysql-devel openssl-devel readline-devel zlib-devel curl-devel libxslt-devel pcre ImageMagick-devel
yum install -y epel-release 
yum install -y ntp
chkconfig ntpd on
ntpdate pool.ntp.org
service ntpd start
To install ruby on centos 6
cd /usr/local/src/
wget -qO- https://cache.ruby-lang.org/pub/ruby/stable/ruby-2.3.4.tar.gz | tar xvz
cd ruby-2.3.4/
./configure --disable-install-doc
make
make install
ruby -v
#ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-linux]
# gem update --system --no-rdoc --no-ri
# gem -v
2.6.11
# gem install bundler --no-rdoc --no-ri
# gem install daemon_controller passenger rack rmagick --no-rdoc --no-ri
# passenger-install-nginx-module
# gem list
To configure MySQL on centos 6
service mysqld start
chkconfig mysqld on
mysql -u root -p
To create username and password for redmine
CREATE DATABASE redmine CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'password123';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
flush privileges;
To install and configure Redmine on centos 6
cd /usr/local/src/
wget -qO- http://www.redmine.org/releases/redmine-3.3.0.tar.gz | tar xvz
mv redmine-3.3.0 /usr/local/
chown -R nginx:nginx /usr/local/redmine-3.3.0
cd /usr/local
ln -s redmine-3.3.0 redmine
chown -R nginx:nginx redmine
cd /usr/local/redmine/config
cp -p database.yml.example database.yml
vi database.yml
The content of database.yml file as bellow
production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "password123"
  encoding: utf8
To install and configure Redmine on centos 6
cd /usr/local/redmine/
bundle config build.nokogiri --use-system-libraries
bundle install --without development test rmagick --path vendor/bundle
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake generate_secret_token
 How to configure nginx + passenger + redmine on centos 6
http {
    passenger_root /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.1.2;
    passenger_ruby /usr/local/bin/ruby;
    server {
        listen       80;
        server_name  localhost;
        root /usr/local/redmine/public;
        passenger_enabled on;
}
}
 somes error during installed redmine on centos 6 solove problem

Gem::Ext::BuildError: ERROR: Failed to build gem native extension

App 2036 stdout:
App 2036 stdout:
[ 2017-04-11 08:59:13.1478 1998/7f7e58800700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /usr/local/redmine: An error occurred while starting up the preloader.
  Error ID: 718cc277
  Error details saved to: /tmp/passenger-error-QL2e1c.html
  Message from application: no such file to load -- bundler/setup (LoadError)
  /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
  /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
  /usr/lib/ruby/1.8/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'
  /usr/lib/ruby/1.8/phusion_passenger/loader_shared_helpers.rb:297:in `run_load_path_setup_code'
  /usr/lib/ruby/1.8/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'
  /usr/lib/ruby/1.8/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:156

[ 2017-04-11 08:59:13.1546 1998/7f7e5ae30700 age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 718cc277. Please see earlier logs for details about the error.

No package 'MagickCore' found

Message from application: no such file to load -- bundler/setup (LoadError)

Missing `secret_token` and `secret_key_base` for 'production' environment


Comments

Popular posts from this blog

zimbra some services are not running [Solve problem]

Bash script list all IP addresses connected to Server

How to install php7 on centos 6