RedmineInstallOSXServer » History » Version 4

Bevan Rudge, 2010-08-24 04:24
Oops, I should have previewed

1 3 Bevan Rudge
h1. Installing Redmine on Mac OS X 10.6
2 1 Josh Galvez
3 1 Josh Galvez
{{>TOC}}
4 1 Josh Galvez
5 1 Josh Galvez
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 1 Josh Galvez
7 1 Josh Galvez
h2. Step by Step
8 1 Josh Galvez
9 1 Josh Galvez
h3. Install Prerequisites 
10 1 Josh Galvez
11 1 Josh Galvez
# Install Xcode/OS X Developer Tools
12 1 Josh Galvez
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 1 Josh Galvez
# Install OS X MySQL Libraries ( http://support.apple.com/kb/HT4006 )
14 1 Josh Galvez
Download http://www.opensource.apple.com/other/MySQL-53.binaries.tar.gz
15 1 Josh Galvez
	@sudo tar -xvf ~/Downloads/MySQL-53.binaries.tar -C /@
16 1 Josh Galvez
# Install Ruby Gems
17 1 Josh Galvez
	@sudo gem install rails -v=2.3.5@
18 1 Josh Galvez
	@sudo gem install rack -v=1.0.1@
19 1 Josh Galvez
	@sudo gem install rake@
20 1 Josh Galvez
	@sudo gem install fastthread@
21 1 Josh Galvez
	@sudo gem install mysql@
22 1 Josh Galvez
# Install Passenger
23 1 Josh Galvez
	@sudo gem install passenger@
24 1 Josh Galvez
	@sudo passenger-install-apache2-module@
25 1 Josh Galvez
# Install Passenger Pref Pane
26 1 Josh Galvez
Download and Install: http://www.fngtps.com/passenger-preference-pane
27 1 Josh Galvez
28 1 Josh Galvez
h3. Install Redmine
29 1 Josh Galvez
30 1 Josh Galvez
# Checkout Redmine
31 1 Josh Galvez
	@cd /Library/WebServer/Sites/@
32 1 Josh Galvez
	@svn checkout http://redmine.rubyforge.org/svn/trunk redmine@
33 1 Josh Galvez
# Configure Passenger
34 1 Josh Galvez
	Open /Library/WebServer/Sites/redmine in Finder
35 1 Josh Galvez
	Start Passenger preference pane in System Preferences
36 1 Josh Galvez
	Drag redmine folder to Passenger (you may have to 'click to make changes')
37 1 Josh Galvez
	Set "Address" and click "Production"
38 4 Bevan Rudge
# If you are running desktop OS X  (not the Server edition):  See [[RedmineInstallOSX]]
39 3 Bevan Rudge
# If you are running OS X *Server*: Enable MySQL
40 1 Josh Galvez
	Launch Server Admin, click + Sign, Add Service, Check MySQL box, click Save
41 1 Josh Galvez
	Choose the MySQL service, click Set Root Password, click Start to start the service
42 1 Josh Galvez
# Setup Database
43 1 Josh Galvez
	@mysql -u root -p@
44 1 Josh Galvez
<pre>	create database redmine character set utf8;
45 1 Josh Galvez
	create user 'redmine'@'localhost' identified by 'my_password';
46 1 Josh Galvez
	grant all privileges on redmine.* to 'redmine'@'localhost';</pre>
47 1 Josh Galvez
# Configure Redmine
48 1 Josh Galvez
	@cd /Library/WebServer/Sites/redmine@
49 1 Josh Galvez
	@mkdir tmp public/plugin_assets@
50 1 Josh Galvez
	@sudo chmod -R 755 files log tmp public/plugin_assets@
51 1 Josh Galvez
	@cp config/database.yml.example config/database.yml@
52 1 Josh Galvez
Edit databse.yml, ie.:
53 1 Josh Galvez
<pre>
54 1 Josh Galvez
production:
55 1 Josh Galvez
  adapter: mysql
56 1 Josh Galvez
  database: redmine
57 1 Josh Galvez
  host: localhost
58 1 Josh Galvez
  username: redmine
59 1 Josh Galvez
  password: my_password
60 1 Josh Galvez
</pre>
61 1 Josh Galvez
# Establish Defaults
62 1 Josh Galvez
	@rake generate_session_store@
63 1 Josh Galvez
	@RAILS_ENV=production rake db:migrate@
64 1 Josh Galvez
	@RAILS_ENV=production rake redmine:load_default_data@