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