Project

General

Profile

ChiliProject » History » Version 1

Joseph Foley, 2015-09-05 03:00

1 1 Joseph Foley
h1. ChiliProject
2
3
Some useful information also at https://projects.cs.ru.is/projects/samvinna/wiki/ChiliprojectRedmine
4
5
* Ruby on Rails https://help.ubuntu.com/community/RubyOnRails
6
** Getting Ruby 1.9.X installed on ubuntu http://leonard.io/blog/2012/05/installing-ruby-1-9-3-on-ubuntu-12-04-precise-pengolin/
7
** Getting rid of 1.8.X on ubuntu (needed for nokogiri)  http://leonard.io/blog/2011/12/installing-ruby-1-9-2-on-ubuntu-11-10-oneric-ocelot-without-using-rvm/#uninstall
8
* Chiliproject install instructions 
9
** Ubuntu 12.04 https://www.chiliproject.org/projects/redmine/wiki/Installation_on_Ubuntu_12_04_v3
10
** Ubuntu 11.04 https://www.chiliproject.org/projects/redmine/wiki/Installation_on_Ubuntu_11_04_v2
11
* Chiliproject/redmine modules
12
** http://projects.andriylesyuk.com/projects/scm-creator/wiki/Install
13
** http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
14
* Apache guides
15
** Directory and Locations http://httpd.apache.org/docs/current/sections.html
16
** mod_alias for redirection http://httpd.apache.org/docs/current/mod/mod_alias.html#alias
17
18
h2. Ruby on rails
19
20
Run all these commands as root unless specified.
21
22
# First install ruby on rails as per https://help.ubuntu.com/community/RubyOnRails
23
<pre>aptitude -y install ruby-full build-essential</pre>
24
# Next install apache
25
<pre>aptitude -y install apache2 apache2-mpm-prefork apache2-prefork-dev</pre>
26
# Install mongrel (which will also install rubygems)
27
<pre>a2enmod proxy
28
a2enmod proxy_http
29
a2enmod rewrite
30
service apache2 restart
31
aptitude -y install mongrel
32
</pre>
33
34
h2. Chiliproject
35
36
# Install rails via aptitude (sometimes not recommended)
37
<pre>aptitude -y install rails</pre>
38
# Create chiliproject user and dir
39
<pre>mkdir -p /var/www/chiliproject
40
adduser --system --home /var/www/chiliproject --group --shell /bin/sh --disabled-login chiliproject
41
</pre>
42
# Chiliproject install instructions (some overlap)
43
<pre>apt-get update
44
aptitude -y install apache2 ruby rubygems build-essential curl git subversion apache2-mpm-prefork mysql-server mysql-client
45
aptitude -y install libopenssl-ruby1.8 libmysqlclient-dev libpq-dev libsqlite3-dev libssl-dev zlib1g-dev libreadline6-dev libxml2-dev libapache2-mod-passenger libmagick++-dev
46
</pre>
47
# Setup the database (mysql)
48
<pre>mysql -uroot -p
49
create database chiliproject character set utf8;
50
create user 'chiliproject'@'localhost' identified by 'my_password';  <--Make sure you change the password here to meet your needs.
51
grant all privileges on chiliproject.* to 'chiliproject'@'localhost';
52
exit
53
</pre>
54
# become chiliproject user
55
<pre>su chiliproject</pre>
56
# Grab the chiliproject code
57
<pre>cd /var/www/redmine/
58
git clone git://github.com/redmine/chiliproject.git
59
cd chiliproject
60
git checkout stable
61
</pre>
62
63
h2. Apache reconfig
64
65
http://stackoverflow.com/questions/10658017/apache-error-default-virtualhost-overlap-on-port-443
66
67
# Configure apache to have virtual hosts on port 443
68
## Edit /etc/apache2/ports.conf
69
## Put a "NameVirtualHost *:443" just above the "Listen 443"
70
71
h2. SVN Repository access
72
73
http://www.redmine.org/projects/redmine/wiki/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
74
75
# Install the dav modules
76
<pre>aptitude -y install libapache2-svn libapache-dbi-perl \
77
libapache2-mod-perl2 libdbd-mysql-perl libdigest-sha1-perl \
78
libauthen-simple-ldap-perl</pre>
79
# Enable the apache DAV modules
80
<pre>sudo a2enmod dav
81
sudo a2enmod dav_svn # if you want to use svn
82
sudo a2enmod dav_fs  # if you want to use git
83
sudo a2enmod perl</pre>
84
# Edit Redmine.pm and replace references of SHA1 to SHA.  Also put the database password
85
# Copy the Redmine.pm file into the right place
86
<pre>cp extra/svn/Redmine.pm /usr/lib/perl5/Apache/Redmine.pm</pre>
87
88
h2. Certificates
89
90
# copy the "wild-ru-public.crt" into /usr/share/ca-certificates
91
# Edit @/etc/ca-certificates.conf@ and add @wild-ru-public.crt@
92
# run the update script
93
<pre>update-ca-certificates</pre>