Turn off SELinux and reboot (or apache can't find /var/www/redmine folder) Turn off iptables service for others can login to Redmine server: Use root: service iptables stop Set yum proxy: /etc/yum.conf add: proxy=http://10.21.3.31:8087 Ref: http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html Install apache2 and mysql http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-centos-6.4-lamp Install redmine
Install Redmine 2.0.3 on Centos 6.3
http://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_%28Detailed%29 $ yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel $ yum install ruby-rdoc ruby-devel $ yum install rubygems
$ gem install --http-proxy http://10.21.3.31:8087 rails $ gem install --http-proxy http://10.21.3.31:8087 passenger (very slow: about 10min) $ passenger-install-apache2-module $ vi /etc/httpd/conf/httpd.conf: add: LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-4.0.21/buildout/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.21 PassengerDefaultRuby /usr/bin/ruby $ yum install ImageMagick-devel $ yum install mysql-devel Create MySQL database $ mysql -u root -p create database redmine character set utf8; create user 'redmine'@'localhost' identified by 'very_secret'; grant all privileges on redmine.* to 'redmine'@'localhost'; quit; Download redmine 2.3.3, tar zxvf to /var/www rename redmine-2.3.3 to redmine $ chown -R apache:apache /var/www/redmine/ verify user and group name in /etc/httpd/conf/httpd.conf line 242,243 $ cd /var/www/redmine/config $ cp database.yml.example database.yml $ vi /var/www/redmine/config/database.yml adapter: mysql database: redmine host: localhost username: redmine password: very_secret encoding: utf8 $ cd /var/www/redmine $ gem install bundler $ bundle install --without development test $ RAILS_ENV=production rake db:migrate $ RAILS_ENV=production rake redmine:load_default_data $ ruby script/rails server webrick -e production
Then load http://localhost:3000 (or http://10.21.3.69:3000) in web browser, the redmine is running.
Load Redmine in Apache
The following tests didn't success. Try it later. Create /etc/httpd/conf.d/redmine.conf:
Listen *:3001 Activate FCGI and generate plugin directory cd /var/www/redmine/public mkdir plugin_assets cp dispatch.fcgi.example dispatch.fcgi cp htaccess.fcgi.example .htaccess vi /var/www/redmine/public/dispatch.fcgi