$$$$ Redmine installation
$$$$ Get the dependecies
apt-get install mysql-server rails lighttpd
apt-get install librmagick-ruby
apt-get install subversion git-core
apt-get install gem
$$$ database preparation
create database redmine;
create user 'redmine'@'localhost' identified by 'redmine';
grant select,insert,update,delete,index,alter on redmine.* to 'redmine'@'localhost';
$$$ get the source of redmine
$$$ to Avoid root usage create user redmine with
svn co http://redmine.rubyforge.org/svn/branches/0.8-stable redmine-0.8 ## Latest stable
ln -s redmine-0.8 redmine
cd redmine/config
cp database.yml.example database.yml
add the database settings to database.yml
$$$$ getting database up
from redmine directory
rake db:migrate RAILS_ENV="production"
<<< for this installation gem install -v 2.1.2 rails >>>
<<< apt-get isntall libmysql-ruby >>>
rake redmin:load_default_data RAILS_ENV="production"
ruby script/server -e production
ctrl+c
put the file 20-redmine.conf in /etc/lighttpd/conf-available/
with contents as follows tweeked with your setting
server.modules += ( "mod_fastcgi" )
$HTTP["host"] == "redmine.josefsson.org" {
server.document-root = "/home/redmine/redmine/public/"
fastcgi.server = ( ".fcgi" =>
((
"bin-path" => "/home/redmine/redmine/public/dispatch.fcgi",
"socket" => "/tmp/ruby-rails.socket",
"max-procs" => 5,
"idle-timeout" => 20,
"bin-environment" => (
"RAILS_ENV" => "production",
"RAILS_ROOT" => "/home/redmine/redmine"
),
))
)
magnet.attract-physical-path-to = ( "/home/redmine/cleanurl.lua" )
}
##enable module
lighttpd-enable-mod redmine
## create a FastCGI wrapper in ~/redmine/public folder
cp dispatch.fcgi.example dispatch fcgi
chmod +x dispatch.fcgi
##start lighttpd restart
/etc/init.d/lighttpd restart
##start the redmine server
ruby script/server -e production
### now point your browser to http://yourserver:3000
<<< Things to do >>>
Porting redmine with apache 2
integrating SVN and SVN authentication
No comments:
Post a Comment