« Redmine : Installation sous CentOS 6 » : différence entre les versions
Aucun résumé des modifications |
|||
Ligne 1 : | Ligne 1 : | ||
{{Auteur|Adadov}} | |||
== Installation Apache et mod_passenger == | == Installation Apache et mod_passenger == | ||
Ligne 59 : | Ligne 61 : | ||
</VirtualHost> | </VirtualHost> | ||
</source> | </source> | ||
[[Catégorie:Développement]] | |||
[[Catégorie:SysAdmin]] |
Version du 26 février 2015 à 00:13
Installation Apache et mod_passenger
[root@linux] # | yum install httpd mod_passenger | dblclick to copy |
Téléchargement Redmine
[root@linux] # | wget http://www.redmine.org/releases/redmine-2.6.2.tar.gz | dblclick to copy |
[root@linux] # | tar xf redmine-2.6.2.tar.gz -C /var/www/ | |
[root@linux] # | ln -s /var/www/redmine-2.6.2 /var/www/redmine |
Installation environnement Ruby
[root@linux] # | yum install mysql-devel (si on utilise une DB MySQL) | dblclick to copy |
[root@linux] # | yum install ruby-devel | |
[root@linux] # | yum install ImageMagick-devel | |
[root@linux] # | gem install bundler | |
[root@linux] # | cd /var/www/redmine | |
[root@linux] # | chown -R adadov . | |
[root@linux] # | su - adadov | |
[root@linux] # | bundle install --without development test |
Création de la DB MySQL
{{#sqlcmd:CREATE DATABASE redmine CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';|mysql>}}Configuration Redmine
[root@linux] # | cd config | dblclick to copy |
[root@linux] # | cp database.yml{.example,} | |
[root@linux] # | vim database.yml |
Configuration de l'accès à la base de donnée
[root@linux] # | rake generate_secret_token | dblclick to copy |
[root@linux] # | RAILS_ENV=production rake db:migrate | |
[root@linux] # | RAILS_ENV=production rake redmine:load_default_data |
[root@linux] # | mkdir -p tmp tmp/pdf public/plugin_assets | dblclick to copy |
[root@linux] # | sudo chown -R apache:apache files log tmp public/plugin_assets | |
[root@linux] # | sudo chmod -R 755 files log tmp public/plugin_assets |
Configuration Apache
<VirtualHost *:80>
ServerName redmine.mondomaine.com
DocumentRoot /var/www/redmine/public
<Directory /var/www/redmine/public/>
AllowOverride all
Order allow,deny
allow from all
Options -MultiViews
</Directory>
ErrorLog logs/error_redmine.log
LogLevel warn
CustomLog logs/access_redmine.log combined
</VirtualHost>