ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Installation on OpenSUSE 12.1

Contents

Using RVM (prefered)

Create user "chili":

:~> sudo useradd -m chili
:~> sudo passwd chili
:~> su chili
:~> cd

Install required software:

:~> sudo zypper install --no-recommends git patterns-openSUSE-devel_basis gcc-c++ bzip2 readline-devel zlib-devel libxml2-devel libxslt-devel libyaml-devel libopenssl-devel libffi46-devel libtool bison mysql-community-server libmysqld-devel postfix curl-devel apache2-devel apr-devel
:~> bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)

Restart terminal now.

:~> su chili
:~> cd
:~> type rvm | head -1
:~> rvm get head
:~> rvm reload
:~> rvm install 1.8.7
:~> rvm use 1.8.7
:~> rvm --default 1.8.7
:~> git clone git://github.com/chiliproject/chiliproject.git
:~> cd chiliproject/
:~/chiliproject> git checkout unstable
:~/chiliproject> bundle install --without=test sqlite postgres mysql rmagick

Setup mysql:

:~/chiliproject> sudo rcmysql start
:~/chiliproject> sudo chkconfig mysql on
:~/chiliproject> sudo mysql
mysql> create database chiliproject character set utf8;
mysql> create user 'chili'@'localhost' identified by 'my_password';
mysql> grant all privileges on chiliproject.* to 'chili'@'localhost';
mysql> exit

Setup ChiliProject:

:~/chiliproject> cp config/database.yml.example config/database.yml
:~/chiliproject> cp config/configuration.yml.example config/configuration.yml

Edit "database.yml":

production:
  adapter: mysql2
  database: chiliproject
  host: localhost
  port: 3306
  username: chili
  password: my_password

Edit "configuration.yml" and adapt it to your needs.

:~/chiliproject> bundle exec rake generate_session_store
:~/chiliproject> RAILS_ENV=production bundle exec rake db:migrate
:~/chiliproject> RAILS_ENV=production bundle exec rake redmine:load_default_data

Check, if its working:

:~/chiliproject> bundle exec script/server -e production

Navigate your browser to http://localhost:3000/.
Use the default administrator account to log in: #* Login: admin #* Password: admin
Press <Ctrl> + c to stop the server.
For production use you have to setup an Apache web server.

Setup Apache webserver:

:~/chiliproject> sudo rcapache2 start
:~/chiliproject> sudo chkconfig apache2 on
:~/chiliproject> gem install passenger
:~/chiliproject> passenger-install-apache2-module

Create "/etc/apache2/httpd.conf.local":
LoadModule passenger_module /home/chili/.rvm/gems/ruby-1.8.7-p352/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /home/chili/.rvm/gems/ruby-1.8.7-p352/gems/passenger-3.0.11
PassengerRuby /home/chili/.rvm/wrappers/ruby-1.8.7-p352/ruby

<VirtualHost *:80>
        ServerName www.demo.chiliproject.org
        ServerAlias demo.chiliproject.org
        DocumentRoot /home/chili/chiliproject/public
        <Directory /home/chili/chiliproject/public>
                AllowOverride all
                Options -MultiViews
                Order allow,deny
                Allow from all 
        </Directory>
</VirtualHost>

Edit "/etc/sysconfig/apache2":

APACHE_CONF_INCLUDE_FILES="/etc/apache2/httpd.conf.local" 

Restart Apache:
:~/chiliproject> sudo rcapache2 restart

Navigate your browser to http://localhost/.
Use the default administrator account to log in:
  • Login: admin
  • Password: admin

Don't forget to change the password!

Using native packages

Open a console and follow the following instructions:

:~> sudo zypper install --no-recommends ruby mysql-community-server postfix rubygems git libmysqld-devel gcc make
:~> git clone git://github.com/chiliproject/chiliproject.git
:~> cd chiliproject/
:~/chiliproject> git checkout unstable
:~/chiliproject> sudo gem install bundler
:~/chiliproject> bundle install --without=test sqlite postgres mysql rmagick
:~/chiliproject> sudo /etc/init.d/mysql start
:~/chiliproject> sudo mysql
mysql> create database chiliproject character set utf8;
mysql> create user 'chiliproject'@'localhost' identified by 'my_password';
mysql> grant all privileges on chiliproject.* to 'chiliproject'@'localhost';
mysql> exit
:~/chiliproject> cp config/database.yml.example config/database.yml
:~/chiliproject> cp config/configuration.yml.example config/configuration.yml

Edit "database.yml":

production:
  adapter: mysql2
  database: chiliproject
  host: localhost
  port: 3306
  username: chiliproject
  password: my_password

Edit "configuration.yml" and adapt it to your needs.

:~/chiliproject> bundle exec rake generate_session_store
:~/chiliproject> RAILS_ENV=production bundle exec rake db:migrate
:~/chiliproject> RAILS_ENV=production bundle exec rake redmine:load_default_data
:~/chiliproject> bundle exec script/server -e production
Navigate your browser to http://localhost:3000/.
Use the default administrator account to log in:
  • Login: admin
  • Password: admin

For production use you have to setup an Apache web server.