воскресенье, 25 сентября 2011 г.

HowTo Redmine 1.2 on FreeBSD 8.2 Amd64 + FastCGI Apache

1. Get Redmine-1.2 stable: svn co http://redmine.rubyforge.org/svn/branches/1.2-stable redmine-1.2
2. Install Ruby 1.8.7: portmaster lang/ruby18
3. Download RubyGems 1.6.2: wget http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz
4. Unpack It && cd
5. Install RubyGems: ruby setup.rb
6. Make a ln: ln -s /usr/local/bin/gem18 /usr/local/bin/gem
7. Instal required gems with proper versions:
gem install rake -v=0.8.7
gem install rack -v=1.1.2
gem install mongrel -v=1.1.5
gem install i18n -v=0.4.2
gem install rails -v=2.3.11
gem install mysql
8. Now do "Installation Procedure" from official guide http://www.redmine.org/projects/redmine/wiki/RedmineInstall

Using FastCGI
1. Download FastCGI: wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
2. Unpack It && cd
3. ./configure
4. Edit Makefile in ALL DIR AND SUBDIR: add '-fPIC' to CC, CPP, CXX
    So, it should be like this:
    CC = gcc -fPIC
    CPP = gcc -E -fPIC
    CXX = g++ -fPIC
5. make
6. make install
7. Make ln -s to all FastCGI headers in /usr/local/include to /usr/include
    Headers are: fastcgi.h, fcgi_config.h, fcgi_stdio.h, fcgiapp.h, fcgimisc.h, fcgio.h, fcgios.h
8. Install apache mod_fcgi: portmaster www/mod_fastcgi
9. Install gem fcgi: gem install fcgi
10. Edit httpd.conf - uncomment LoadModule fascgi_module
11. Follow the instruction: http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Apache_to_run_Redmine#For-FreeBSD-and-possibly-others
12. Make sure your log files have proper access rights

That works for me without any errors

Комментариев нет:

Отправить комментарий