Redmine

De GioWiki.

Ligne 50 : Ligne 50 :
  RAILS_ENV=production rake redmine:load_default_data
  RAILS_ENV=production rake redmine:load_default_data
 +
=== Installation de Mongrel ===
 +
gem install gem_plugin mongrel mongrel_cluster
 +
mongrel_rails cluster::configure -e production -p 8000 -N 3 -c /var/www/redmine -C /var/www/redmine/1.1/config/mongrel_cluster.yml -a 127.0.0.1 --user redmine --group www-data
 +
 +
mkdir /etc/mongrel_cluster
 +
ln -s /var/www/redmine/1.1/config/mongrel_cluster.yml /etc/mongrel_cluster/redmine.yml
 +
 +
cp /usr/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/resources/mongrel_cluster /etc/init.d/
 +
 +
Faire quelques modifications dans le fichier (voir tutos).
 +
chmod +x /etc/init.d/mongrel_cluster
 +
update-rc.d -f mongrel_cluster defaults
 +
 +
/etc/init.d/mongrel_cluster start
 +
 +
On active les modules Apache2 nécessaire :
 +
a2enmod rewrite
 +
a2enmod proxy_http
 +
a2enmod proxy_balancer
 +
 +
Éditez le fichier et inverser les directives Order et Allow.
 +
vim /etc/apache2/mods-available/proxy.conf
 +
 +
Ensuite on créé le virtualhost :
 +
<pre>
 +
vi /etc/apache2/sites-available/redmine
 +
 +
<VirtualHost *:80>
 +
  ServerAdmin admin@votredomaine.tld
 +
  ServerName redmine.votredomaine.tld
 +
  DocumentRoot /var/www/redmine/1.1/public/
 +
 +
  <Directory /var/www/redmine/1.1/public/>
 +
    Options Indexes FollowSymLinks MultiViews
 +
    AllowOverride All
 +
    Order allow,deny
 +
    allow from all
 +
  </Directory>
 +
 +
  <Proxy balancer://mongrel_cluster>
 +
    BalancerMember http://127.0.0.1:8000
 +
    BalancerMember http://127.0.0.1:8001
 +
    BalancerMember http://127.0.0.1:8002
 +
  </Proxy>
 +
 +
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -f
 +
  RewriteRule (.*) $1 [L]
 +
 +
  ProxyPass / Balancer://mongrel_cluster/
 +
  ProxyPassReverse / balancer://mongrel_cluster/
 +
 +
  AddOutputFilter DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css
 +
  BrowserMatch ^Mozilla/4 gzip-only-text/html
 +
  BrowserMatch ^Mozilla/4.0[678] no-gzip
 +
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
 +
 +
  ErrorLog /var/log/apache2/redmine.error.log
 +
  LogLevel warn
 +
  CustomLog /var/log/apache2/redmine.access.log combined
 +
  ServerSignature Off
 +
</VirtualHost>
 +
</pre>
 +
 +
a2ensite redmine
 +
Et on relance Apache pour qu'il prenne tout en compte :
 +
/etc/init.d/apache2 restart
Plus d'informations : http://www.admincafe.re/forums/showthread.php?t=250 - http://www.redmine.org/projects/redmine/wiki/RedmineInstall
Plus d'informations : http://www.admincafe.re/forums/showthread.php?t=250 - http://www.redmine.org/projects/redmine/wiki/RedmineInstall

Version du 19 janvier 2011 à 18:31

Outils personnels