Project

General

Profile

RedmineInstallOSXServer » History » Version 1

Josh Galvez, 2010-08-18 22:30
First Draft

1 1 Josh Galvez
h1. Installing Redmine on OS X Server
2
3
{{>TOC}}
4
5
This is a quick summary of the necessary steps for a simple install of Redmine on Apple OS X Snow Leopard Server 10.6.4.  It is meant only as a supplement, not a replacement, to the official install guide found [[RedmineInstall|here]].
6
7
h2. Step by Step
8
9
h3. Install Prerequisites 
10
11
# Install Xcode/OS X Developer Tools
12
Install from OS X Server DVD that was shipped with your Mac, or register for a free account and download from: http://developer.apple.com/technologies/xcode.html
13
# Install OS X MySQL Libraries ( http://support.apple.com/kb/HT4006 )
14
Download http://www.opensource.apple.com/other/MySQL-53.binaries.tar.gz
15
	@sudo tar -xvf ~/Downloads/MySQL-53.binaries.tar -C /@
16
# Install Ruby Gems
17
	@sudo gem install rails -v=2.3.5@
18
	@sudo gem install rack -v=1.0.1@
19
	@sudo gem install rake@
20
	@sudo gem install fastthread@
21
	@sudo gem install mysql@
22
# Install Passenger
23
	@sudo gem install passenger@
24
	@sudo passenger-install-apache2-module@
25
# Install Passenger Pref Pane
26
Download and Install: http://www.fngtps.com/passenger-preference-pane
27
28
h3. Install Redmine
29
30
# Checkout Redmine
31
	@cd /Library/WebServer/Sites/@
32
	@svn checkout http://redmine.rubyforge.org/svn/trunk redmine@
33
# Configure Passenger
34
	Open /Library/WebServer/Sites/redmine in Finder
35
	Start Passenger preference pane in System Preferences
36
	Drag redmine folder to Passenger (you may have to 'click to make changes')
37
# Enable MySQL
38
	Launch Server Admin, click + Sign, Add Service, Check MySQL box, click Save
39
	Choose the MySQL service, click Set Root Password, click Start to start the service
40
# Setup Database
41
	@mysql -u root -p@
42
<pre>	create database redmine character set utf8;
43
	create user 'redmine'@'localhost' identified by 'my_password';
44
	grant all privileges on redmine.* to 'redmine'@'localhost';</pre>
45
# Configure Redmine
46
	@cd /Library/WebServer/Sites/redmine@
47
	@mkdir tmp public/plugin_assets@
48
	@sudo chmod -R 755 files log tmp public/plugin_assets@
49
	@cp config/database.yml.example config/database.yml@
50
Edit databse.yml, ie.:
51
<pre>
52
production:
53
  adapter: mysql
54
  database: redmine
55
  host: localhost
56
  username: redmine
57
  password: my_password
58
</pre>
59
# Establish Defaults
60
	@rake generate_session_store@
61
	@RAILS_ENV=production rake db:migrate@
62
	@RAILS_ENV=production rake redmine:load_default_data@