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
-
Plus d'informations : http://www.admincafe.re/forums/showthread.php?t=250 - http://www.redmine.org/projects/redmine/wiki/RedmineInstall
+
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
 +
 
 +
 
 +
=== Passenger ===
 +
gem install passenger
 +
apt-get install libcurl4-openssl-dev libaprutil1-dev libapr1-dev apache2-prefork-dev
 +
cd /usr/lib/ruby/gems/1.8/gems/passenger-3.0.2/bin/
 +
passenger-install-apache2-module
 +
 
 +
vi /etc/apache2/mods-available/passenger.load
 +
  LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.2/ext/apache2/mod_passenger.so
 +
vi /etc/apache2/mods-available/passenger.conf
 +
  PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.2
 +
  PassengerRuby /usr/bin/ruby1.8
 +
 
 +
vi /etc/apache2/sites-available/redmine
 +
  <VirtualHost *:80>
 +
        ServerName gioo.hd.free.fr
 +
 
 +
        DocumentRoot /var/www/redmine/1.1/public
 +
 
 +
        LogLevel warn
 +
        ErrorLog /var/log/apache2/redmine_error
 +
        CustomLog /var/log/apache2/redmine_access combined
 +
 
 +
        <Directory /var/www/redmine/1.1/public>
 +
                Options Indexes FollowSymLinks MultiViews
 +
                AllowOverride None
 +
                Order allow,deny
 +
                allow from all
 +
        </Directory>
 +
  </VirtualHost>
 +
 
 +
a2ensite redmine
 +
/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 - https://wiki.ousli.org/index.php/Redmine_in_Ubuntu_Jaunty_9.04

Version actuelle en date du 19 janvier 2011 à 19:08

Outils personnels