Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
linux:redmine [2015/11/02 15:22]
vondra [Installation]
linux:redmine [2015/11/04 10:00]
vondra [Installation]
Line 4: Line 4:
   - install required packages:<​code bash> apt-get install redmine-mysql</​code>​   - install required packages:<​code bash> apt-get install redmine-mysql</​code>​
   - do not setup database connection during setup   - do not setup database connection during setup
 +  - create new database<​code sql>
 +create database redmine;
 +grant all privileges on redmine.* to redmine@localhost identified by '​redmine';​
 +</​code>​
   - setup database manually in /​etc/​redmine/​database.yaml:<​code yaml>   - setup database manually in /​etc/​redmine/​database.yaml:<​code yaml>
 production: production:
Line 14: Line 18:
   encoding: utf8</​code>​   encoding: utf8</​code>​
   - create database structure:<​code bash>   - create database structure:<​code bash>
 +cd /​usr/​share/​redmine/​
 bundle exec rake db:migrate RAILS_ENV=production</​code>​ bundle exec rake db:migrate RAILS_ENV=production</​code>​
   - create a symlink to working directory:<​code bash>   - create a symlink to working directory:<​code bash>
 ln -s /​usr/​share/​redmine /​var/​lib/​redmine/​default/​passenger</​code>​ ln -s /​usr/​share/​redmine /​var/​lib/​redmine/​default/​passenger</​code>​
 +  - install passenger module to apache:<​code bash>
 +apt-get install libapache2-mod-passenger
 +</​code>​
 +  - setup default user for passenger in /​etc/​apache2/​mods-available/​passenger.conf:<​code xml>
 +<​IfModule mod_passenger.c>​
 +  PassengerRoot /​usr/​lib/​ruby/​vendor_ruby/​phusion_passenger/​locations.ini
 +  PassengerDefaultRuby /​usr/​bin/​ruby
 +  **PassengerDefaultUser www-data**
 +</​IfModule>​
 +</​code>​
   - create apache configuration /​etc/​apache2/​sites-available/​redmine.conf:<​code xml>   - create apache configuration /​etc/​apache2/​sites-available/​redmine.conf:<​code xml>
 Listen 3000 Listen 3000
Line 33: Line 48:
         </​Directory>​         </​Directory>​
 </​VirtualHost></​code>​ </​VirtualHost></​code>​
-  - reload apache  +  - reload apache<​code>​ 
-restart apache a na portu 3000 bezi funkcni instance redmine +apache2ctl graceful</​code>​ 
-pote nahrat dump predchozi verze do databaze a sledovat funkcnost +  - access the redmine on port 3000
 ===== Migration ===== ===== Migration =====
 [[https://​www.redmine.org/​projects/​redmine/​wiki/​HowTo_Migrate_Redmine_to_a_new_server_to_a_new_Redmine_version]] [[https://​www.redmine.org/​projects/​redmine/​wiki/​HowTo_Migrate_Redmine_to_a_new_server_to_a_new_Redmine_version]]
  
 +  - setup new server following the previous steps 
 +  - copy files from old server to new (files are in /​var/​lib/​redmine/​default/​files) and don't forget to grant permissions for www-data user
  
 
linux/redmine.txt · Last modified: 2015/11/04 10:01 by vondra