Redmine
De GioWiki.
pour
Redmine
Aller à :
Navigation
,
rechercher
== Installation == apt-get install ruby rdoc irb libyaml-ruby ruby1.8-dev libzlib-ruby ri libopenssl-ruby1.8 On installe RubyGems cd /root/ wget 'http://production.cf.rubygems.org/rubygems/rubygems-1.4.1.tgz' tar xvzf rubygems-1.4.1.tgz cd rubygems-1.4.1 ruby setup.rb ln -s /usr/bin/gem1.8 /usr/bin/gem gem install rails -v 2.3.5 gem install -v=0.4.2 i18n apt-get install libmysqlclient15-dev gem install mysql On créé le user redmine et on l'associe au groupe d'apache (-g 33) ce qui sera nécessaire pour pouvoir accéder au serveur web : mkdir /var/www/redmine useradd -d /var/www/redmine -g 33 -s /bin/bash redmine passwd redmine chown redmine:www-data apt-get install imagemagick libmagick9-dev librmagick-ruby1.8 gem install rmagick ---ERROR ===Création de la base de donnée=== create database redmine character set utf8; create user 'redmine'@'localhost' identified by 'my_password'; grant all privileges on redmine.* to 'redmine'@'localhost'; su - redmine svn co http://redmine.rubyforge.org/svn/branches/1.1-stable redmine-1.1 mv redmine-1.1 1.1 cd 1.1/config/ cp database.yml.example database.yml Puis éditer le fichier avec les informations de connexion à la database. 4. Generate a session store secret. rake generate_session_store 5. Create the database structure, by running the following command under the application root directory: RAILS_ENV=production rake db:migrate It will create tables and an administrator account. 6. Insert default configuration data in database, by running the following command: 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 === 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
Revenir à la page
Redmine
.
Affichages
Page
Discussion
Voir le texte source
Historique
Outils personnels
Connexion
Navigation
Accueil
Communauté
Actualités
Modifications récentes
Page au hasard
Aide
Rechercher
Boîte à outils
Pages liées
Suivi des pages liées
Pages spéciales