Project

General

Profile

RedmineInstallOSXServer » History » Version 2

Josh Galvez, 2010-08-18 22:32

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 2 Josh Galvez
	Set "Address" and click "Production"
38 1 Josh Galvez
# Enable MySQL
39
	Launch Server Admin, click + Sign, Add Service, Check MySQL box, click Save
40
	Choose the MySQL service, click Set Root Password, click Start to start the service
41
# Setup Database
42
	@mysql -u root -p@
43
<pre>	create database redmine character set utf8;
44
	create user 'redmine'@'localhost' identified by 'my_password';
45
	grant all privileges on redmine.* to 'redmine'@'localhost';</pre>
46
# Configure Redmine
47
	@cd /Library/WebServer/Sites/redmine@
48
	@mkdir tmp public/plugin_assets@
49
	@sudo chmod -R 755 files log tmp public/plugin_assets@
50
	@cp config/database.yml.example config/database.yml@
51
Edit databse.yml, ie.:
52
<pre>
53
production:
54
  adapter: mysql
55
  database: redmine
56
  host: localhost
57
  username: redmine
58
  password: my_password
59
</pre>
60
# Establish Defaults
61
	@rake generate_session_store@
62
	@RAILS_ENV=production rake db:migrate@
63
	@RAILS_ENV=production rake redmine:load_default_data@