1.cd /usr/ports/www/redmine
make install clean
2. cd /usr/local/www/redmine
mysql –pxxxxxxx
create database redmine character set utf8;
grant all privileges on redmine.* to ‘redmine’@’localhost’ identified by ‘my_password’;
3.Копируем config/database.yml.example
в config/database.yml
и приводим к виду:
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: my_password
4.rake generate_session_store
5.production rake db:migrate RAILS_ENV=
6.rake redmine:load_default_data RAILS_ENV=production
7.chown -R www:www files log tmp public/plugin_assets
8.chmod -R 755 www:www files log tmp public/plugin_assets
9.В файле /usr/local/etc/apache22/httpd.conf и в конце после LoadModule …. добавляем
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.15/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.15
PassengerRuby /usr/local/bin/ruby
PassengerDefaultUser www
10.Добавляем VirtualHost в /usr/local/etc/apache22/extra/httpd-vhosts.conf:
<VirtualHost *:80>
ServerName redmine.kamaok.org.ua
ServerAlias www.redmine.kamaok.org.ua
ServerAdmin root@kamaok.org.ua
DocumentRoot /usr/local/www/redmine/public/
ErrorLog /usr/local/www/redmine/log/redmine_error_log
<Directory «/usr/local/www/redmine/public/»>
Options Indexes ExecCGI FollowSymLinks
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>
11. Рестарт Apache /usr/local/etc/rc.d/apache22 restart
Заходим на Web-интерфес
Login: admin
Password: admin
Логии смотрим /usr/local/www/redmine/log/production.log
Ошибки в /usr/local/www/redmine/log/redmine_error_log
P.S.
Как вариант Redmine можно повесить на нестандартный порт.
Пришлось перенести на нестандартный порт
Listen 3000
<VirtualHost *:3000>
ServerAdmin root@kamaok.org.ua
DocumentRoot /usr/local/www/redmine/public/
ErrorLog /usr/local/www/redmine/log/redmine_error_log
<Directory «/usr/local/www/redmine/public/»>
Options Indexes ExecCGI FollowSymLinks
Order allow,deny
Allow from all
AllowOverride all
</Directory>
</VirtualHost>