Installing Centauro on Debian/Ubuntu

1) Install packages that you need:

$sudo apt-get install php5 postgresql-8.1 php5-pgsql apache2 libapache2-mod-php5

2) Create PostgreSQL user (you must type a password):

$sudo -u postgres createuser -D -A -P centacms

3) Create Database:

$sudo -u postgres createdb -E utf8 -O centacms DBCENTACMS

4) Edit:

$sudo mcedit /etc/postgresql/8.1/main/pg_hba.conf

5) Add the line:

local DBCENTACMS centacms md5

6) Restart:

$sudo /etc/init.d/postgresql restart

6) Switch to user www-data:

$sudo su www-data

7) Download the last CakePHP stable version:

 http://cakephp.org/downloads

8) Extract the file on /var/www.

9) Now you will have a directory like /var/www/cake_1.1.1xxx, rename:

$mv /var/www/cake_1.1.1xxx /var/www/cake

11) Get the centauro code:

$svn co  https://svn.chipotle-software.com/repos/centauro/trunk/ /var/www/cake/centauro

12) Create tables:

$sudo -u postgres psql DBCENTACMS < ./centauro/config/sql/centauro.sql -U centacms -W

you can access the DB with:

$sudo -u postgres psql DBCENTACMS -U centacms -W

13) Open the file /var/www/cake/centauro/config/database.php.default and save it like "database.php":

14) You must change some lines to get something like this:

var $default = array('driver' => 'postgres',

'connect' => 'pg_connect',
'host' => 'localhost',
'login' => 'centacms',
'password' => '67dgreYTE45TY',
'database' => 'DBCENTACMS',
'prefix' => );

14) Edit your apache2 site:

$sudo mcedit /etc/apache/sites-available/default

make sure your DocumentRoot? and Directory parameters are set on "/var/www/cake/centauro/webroot", save, exit and restart apache2:

$sudo /etc/init.d/apache2 restart

Now you can go to  http://localhost and login as administrator:

username: webmaster
password: admin

Change the password on the "My account" screen.

Enjoy!