Actions
ChiliProject¶
Some useful information also at https://projects.cs.ru.is/projects/samvinna/wiki/ChiliprojectRedmine
- Ruby on Rails https://help.ubuntu.com/community/RubyOnRails
- 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/
- 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
- Chiliproject install instructions
- Chiliproject/redmine modules
- Apache guides
- Directory and Locations http://httpd.apache.org/docs/current/sections.html
- mod_alias for redirection http://httpd.apache.org/docs/current/mod/mod_alias.html#alias
Ruby on rails¶
Run all these commands as root unless specified.
- First install ruby on rails as per https://help.ubuntu.com/community/RubyOnRails
aptitude -y install ruby-full build-essential
- Next install apache
aptitude -y install apache2 apache2-mpm-prefork apache2-prefork-dev
- Install mongrel (which will also install rubygems)
a2enmod proxy a2enmod proxy_http a2enmod rewrite service apache2 restart aptitude -y install mongrel
Chiliproject¶
- Install rails via aptitude (sometimes not recommended)
aptitude -y install rails
- Create chiliproject user and dir
mkdir -p /var/www/chiliproject adduser --system --home /var/www/chiliproject --group --shell /bin/sh --disabled-login chiliproject
- Chiliproject install instructions (some overlap)
apt-get update aptitude -y install apache2 ruby rubygems build-essential curl git subversion apache2-mpm-prefork mysql-server mysql-client 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
- Setup the database (mysql)
mysql -uroot -p create database chiliproject character set utf8; create user 'chiliproject'@'localhost' identified by 'my_password'; <--Make sure you change the password here to meet your needs. grant all privileges on chiliproject.* to 'chiliproject'@'localhost'; exit
- become chiliproject user
su chiliproject
- Grab the chiliproject code
cd /var/www/redmine/ git clone git://github.com/redmine/chiliproject.git cd chiliproject git checkout stable
Apache reconfig¶
http://stackoverflow.com/questions/10658017/apache-error-default-virtualhost-overlap-on-port-443
- Configure apache to have virtual hosts on port 443
- Edit /etc/apache2/ports.conf
- Put a "NameVirtualHost *:443" just above the "Listen 443"
SVN Repository access¶
- Install the dav modules
aptitude -y install libapache2-svn libapache-dbi-perl \ libapache2-mod-perl2 libdbd-mysql-perl libdigest-sha1-perl \ libauthen-simple-ldap-perl
- Enable the apache DAV modules
sudo a2enmod dav sudo a2enmod dav_svn # if you want to use svn sudo a2enmod dav_fs # if you want to use git sudo a2enmod perl
- Edit Redmine.pm and replace references of SHA1 to SHA. Also put the database password
- Copy the Redmine.pm file into the right place
cp extra/svn/Redmine.pm /usr/lib/perl5/Apache/Redmine.pm
Certificates¶
- copy the "wild-ru-public.crt" into /usr/share/ca-certificates
- Edit
/etc/ca-certificates.conf
and addwild-ru-public.crt
- run the update script
update-ca-certificates
Updated by Joseph Foley over 9 years ago · 1 revisions