User login

Installing Chiliproject on Ubuntu 10.10

[After testing this out, we chose to use the package-managed redmine for now]

Installing Chiliproject with PostgreSQL on Ubuntu 10.10.

Following the instructions on Installation on Ubuntu wiki.

sudo mkdir -p /srv/www/chiliproject
sudo adduser --system --home /srv/www/chiliproject --group --shell /bin/sh --disabled-login chiliproject

With "Install Ruby and basic dependencies" i ran into certain troubles before. Do try to avoid blindly running updates, or the new version of Rake could break things.

Taking Variant 2 this time.

sudo apt-get install build-essential curl libssl-dev zlib1g-dev libreadline5-dev libxml2-dev git

(Ignored warnings about "The following packages cannot be authenticated!")

bash < <(curl -s

Here, we have to follow the instructions given in a very large amount of output from the above command.

"Place the folowing line at the end of your shell's loading files (.bashrc or .bash_profile for bash and .zshrc for zsh), after all PATH/variable settings"

So, vi .bashrc

# This loads RVM into a shell session.
[[ -s "/home/ben/.rvm/scripts/rvm" ]] && source "/home/ben/.rvm/scripts/rvm"

source .bashrc
rvm install 1.8.7
# had to wait a really long time here on my system
rvm use 1.8.7
rvm --default 1.8.7
# we already have rake-- see
# If you don't have rake, use gem install rake -v=1.8.7
gem install rails -v=2.3.5
# pretty long wait here too... as in i almost wanted a skip Rdoc option.
gem install i18n -v=0.4.2
# We already have rake and all gems added to our executable path, export PATH=$PATH:$HOME/bin:/var/lib/gems/1.8/bin in .bashrc or whatever
sudo apt-get install postgresql
sudo apt-get install libpgsql-ruby
sudo apt-get install libpq-dev
gem install pg
# This requirements we already had:
apt-get install apache2-mpm-prefork
# But not this other craziness.  (Did i install Ruby from both apt-get and RVM? Oops.)
apt-get install apache2-prefork-dev libcurl4-openssl-dev
# ah, was supposed to actually put chiliproject code in place first

Why does this fail? Even after i add myself to the chiliproject group?

sudo usermod -a -G chiliproject ben
git clone git://
fatal: could not create work tree dir 'chiliproject'.: Permission denied


cd /srv/www/
sudo git clone git://
cd chiliproject/
sudo chown -R ben:chiliproject .
git checkout stable

Getting PostgreSQL to let you log in.

The first line gets us into PostgreSQL command line, the last line gets us back out.

psql -Upostgres
CREATE DATABASE chiliproject WITH ENCODING='UTF8' OWNER=chiliproject;

Note: Instead of saying "Database created" or something vaguely communicative, it repeats back the main command "CREATE DATABASE" when it succeeds. Don't worry, it's not telling you to do it yourself, which is what i thought at first...

cp config/database.yml.example config/database.yml
v config/database.yml

And this is what i put in database.yml:

  adapter: postgresql
  database: chiliproject
  host: localhost
  username: chiliproject
  password: my_password
  encoding: utf8

  adapter: postgresql
  database: chiliproject_development
  host: localhost
  username: chiliproject
  password: my_password
  encoding: utf8

cp config/configuration.yml.example config/configuration.yml
rake generate_session_store
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
# this second one was already made
mkdir tmp public/plugin_assets
sudo chown -R chiliproject:chiliproject files log tmp public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets

That takes care of the prerequsites, now to actually install it.

gem install passenger

a2enmod passenger
ERROR: Module passenger does not exist!

Added to Apache configuration file /etc/apache2/httpd.conf... is wrong. Still not found, says passenger does not exist. Not all at once. Reading the wiki instructions more carefully, they are more nuanced than passenger-install-apache2-module's instructions.

sudo vi /etc/apache2/mods-available/passenger.load

   LoadModule passenger_module /home/ben/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7/ext/apache2/

sudo vi /etc/apache2/mods-available/passenger.conf

   PassengerRoot /home/ben/.rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.7
   PassengerRuby /home/ben/.rvm/wrappers/ruby-1.8.7-p334/ruby

sudo a2enmod passengerEnabling module passenger.
Run '/etc/init.d/apache2 restart' to activate new configuration!
sudo /etc/init.d/apache2 restart

sudo gvim /etc/apache2/sites-available/chiliproject

<VirtualHost *:80>
  ServerName chiliproject.localhost

  DocumentRoot /srv/www/chiliproject/public
  <Directory /srv/www/chiliproject/public>
    Options None
    AllowOverride None

    Order deny,allow
    Allow from all

sudo a2ensite chiliproject
sudo /etc/init.d/apache2 reload

And that worked!!!

Note the "ruby script/server -e production" test never worked.

Searched words: 
redmine install


Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.