Only registered users are allowed to post
We have one guest and no members online



Tutorial for installing Redmine on Centos 5.7 with Kloxo Panel
Here is a list of sites that I gathered information from.
http://www.how2centos.com/installing-redmine-subversion-on-centos-5-5/
http://www.how-to-linux.com/centos-52/how-to-install-redmine-on-centos-52-update/
http://blog.b2netsolutions.com/server-administration-guides/installing-redmine-on-centos-5/
Here’s the file combination that worked for me….
Use the following for Ruby, Rails, and Gems….
Ruby 1.8.7
Rails 2.3.14
Gems 1.3.7
So lets begin……
yum install yum-priorities
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum update
yum install mysql mysql-server gcc-c++ mysql-devel openssl openssl-devel zlib zlib-devel subversion
yum install ImageMagick ImageMagick-devel
yum install subversion mod_dav_svn
yum install perl-HTML-Parser perl-SVN-Notify
yum install ruby rubygems rubygem-rails rubygem-sqlite3-ruby ruby-devel ruby-mysql
Let’s get and install Ruby…
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz
tar -zxvf ruby-1.8.7.tar.gz
cd ruby-1.8.7
install ruby
./configure
make && make install
Let’s get and install the Rubygems….
Install rubygems
wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz
tar zxvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
ruby setup.rb
Let’s get and install the Rails….
Install Rails
gem install rails -v=2.3.14
Let’s install Redmine….
Install redmine
put in your domains directory - Must be accessable from the net.
svn co http://redmine.rubyforge.org/svn/branches/1.3-stable redmine-1.3
create a database for redmine in kloxo (Make a note of your database info as you will need it later)
Configure the Redmine database connection settings
Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for “production” environment.
**Make sure you are in the domain directory and change to the correct redmine version
cp /home/dwmdev/dwmsoftware.com/redmine-1.3/config/database.yml.example /home/dwmdev/dwmsoftware.com/redmine-1.3/config/database.yml
Config the database config using nano
cd into the redmine/config dir
nano database.yml
Then match the following….
production:
adapter: mysql
database: redmine_*******
host: localhost
username: redmine_*******
password: yourdbpassword
socket: /var/lib/mysql/mysql.sock
Make sure you install rdoc and mysql gem….
gem install mysql
gem install rdoc
Generate a session store secret….
cd /opt/redmine
rake config/initializers/session_store.rb
Migrate database for redmine….
RAILS_ENV=production rake db:migrate
Insert default configuration data in database….
RAILS_ENV=production rake redmine:load_default_data
Test with WEBrick….
ruby script/server -e production
Goto http://***.***.***.***:3000/ to test...you should see the redmine page (I used the servers ip for this.)
You must install Rmagick as well for the nice Gant charts….
gem install rmagick -v 1.15.13 –no-rdoc –no-ri
Make an SVN folder in your domain dir….
Change the owner and group to root.apache
chown -R root.apache svn
Change the permissions…
chmod 0750 svn
Configure subversion to be browsed…. goto /etc/httpd/conf.d
cd /etc/httpd/conf.d
nano subversion.conf
Insert the following at the bottom
<Location /svn>
DAV svn
SVNParentPath /home/dwmdev/svn.dwmsoftware.com/svn
SVNListParentPath on
</Location>
Goto svn.yoursitesdomain.com/svn to test
Install a Mongrel Front to Apache
Install Mongrel
gem install mongrel mongrel_cluster daemons
Configure the Mongrel Cluster for redmine.
cd /opt/redmine
mongrel_rails cluster::configure -e production -p 8000 -N 3 -c /home/dwmdev/dwmsoftware.com/redmine-1.3 --user apache --group apache
Start the Cluster….
The mongrel rails won’t start unless you "chmod 755 /tmp/pid" in the redmine directory
mongrel_rails cluster::start
You can also use the following commands…
mongrel_rails cluster::stop
mongrel_rails cluster::status
mongrel_rails cluster::restart
Configure apache as the load balancer….
Next you need to add the following vhost info to your dwmsoftware.com.conf //Some of these settings may already be in the file.
To do this in Kloxo goto you domain panel for your Redmine site.
In the “Extra” box at the bottom of the page in the Kloxo panel you will see an icon for tags. Click on this icon and add the information below, then save and restart apache. (Make sure this info isn’t already in your domains .conf file)
<VirtualHost *>
ServerName your.domain.name
DocumentRoot /opt/redmine-0.8.0_RC1
<Directory “/opt/redmine-0.8.0_RC1/public”>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Proxy balancer://redmine_cluster>
Order allow,deny
Allow from all
BalancerMember http://127.0.0.1:8000
BalancerMember http://127.0.0.1:8001
BalancerMember http://127.0.0.1:8002
</Proxy>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://redmine_cluster%{REQUEST_URI} [P,QSA,L]
</VirtualHost>
Restart Apache….
Under services in your panel restart the apache service.
Note… If you manually add this info to your .conf file make sure you use the chattr command…
chattr +i (add dir here) ...This will lock the file so you can’t write to it.
chattr -i (add dir here) ...This will unlock the file so you can write to it.
