Ubuntu Color Terminal

gedit ~/.bashrc



Chamilo with Prestashop

Want to link your Chamilo with Prestashop? Follow the indications that you will seen on this webpage

Novedades en Chamilo 1.9

Desarrrollar Chamilo 1.9 – Introducción

The –deployment flag requires a Gemfile.lock – Capistrano – RVM – Bundler

In your server:

$ which bundle

Add this in your deploy.rb

set :bundle_cmd,      “/usr/local/rvm/gems/ruby-1.9.3-p125/bin/bundle”

If you have your repo in a subdirectory:

Install Apache2 PHP + RVM/Passenger Ruby in Ubuntu 12.04 (Linode)

Read this in order to start well

Install Apache + PHP

Install nginx stuff as root

apt-get update

apt-get install curl git-core python-software-properties

add-apt-repository ppa:nginx/stable

apt-get install update

sudo apt-get install build-essential git-core curl libmysqlclient16-dev nodejs

To install Apache (with PHP if you want to)

Create a deployer user and add a group admin (sudoers)

addgroup admin

Add user as a deployer:

adduser deployer

adduser deployer admin

su deployer

Install mercurial (if needed)

apt-get install mercurial

Install mysql

apt-get install mysql-server

Install RVM

sudo bash -s stable < <(curl -s

reload config

source /etc/profile.d/

Check requirements and install missing packages

rvm requirements

Install RVM

rvm install 1.9.3
rvm –default use 1.9.3

source /usr/local/rvm/scripts/rvm rvm –default use 1.9.3
ruby -v

Install Rails

gem install rails
gem install mysql

Before installing passenger:

sudo apt-get install libcurl4-openssl-dev apache2-prefork-dev libapr1-dev  libaprutil1-dev

Install passenger:

gem install passenger

passenger-install-apache2-module — (follow instructions)

sudo adduser deployer rvm

Deploy with capistrano

cap deploy:check
cap deploy:setup — (first time)
cap deploy:cold — (to install the DB)
cap deploy:migrate –(installs migrations)
cap deploy — normal behaviour