Installation Apache et mod_passenger
[root@linux] # | yum install httpd mod_passenger | dblclick to copy |
<nowiki>yum install httpd mod_passenger
</nowiki>
Téléchargement 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 |
<nowiki>yum install mysql-devel (si on utilise une DB MySQL)
yum install ruby-devel
yum install ImageMagick-devel
gem install bundler
cd /var/www/redmine
chown -R adadov .
su - adadov
bundle install --without development test
</nowiki>
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 |
<nowiki>cd config
cp database.yml{.example,}
vim database.yml
</nowiki>
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 |
<nowiki>rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
</nowiki>
[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 |
<nowiki>mkdir -p tmp tmp/pdf public/plugin_assets
sudo chown -R apache:apache files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets
</nowiki>
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>