To install the platform on your computer/server, the target system must meet the following requirements:
- PHP version 5.3.0 or greater
- Database Server
- MySQL version 5.5 or greater
- PostgreSQL support is coming
- An HTTP Server. Ushahidi is known to work with the following web servers:
- Apache 2.2+
- nginx
- Unicode support in the operating system
-
Create a database
-
Copy
application/config/database.template
toapplication/config/database.php
-
Edit
application/config/database.php
and set database, username and password paramsreturn array ( 'default' => array ( 'type' => 'mysql', 'connection' => array( 'hostname' => 'localhost', 'database' => 'lamu', 'username' => 'lamu', 'password' => 'lamu', 'persistent' => FALSE, ), 'table_prefix' => '', 'charset' => 'utf8', 'caching' => TRUE, 'profiling' => TRUE, ) );
-
Install the database schema using migrations
./minion --task=migrations:run --up --group=3-0
We've included a Vagrantfile and puppet manifests to help build a quick development box. Install Vagrant, then run vagrant up
to get started!
Unit and functional tests are run automatically by Travis-CI. See .travis.yml for config details.
We use PHPUnit for unit tests, and Behat and Mink for functional testing.
You can install the Behat, Mink, PHPUnit and other required packages using Composer. Just run
composer install
Behat and PHPUnit will be install to ./bin
at the root of the repository. Run the tests as follows:
./bin/behat --config application/tests/behat.yml
./bin/phpunit -c application/tests/phpunit.xml