Skip to content

Instantly share code, notes, and snippets.

@virusvn
Forked from tevin/Lamu-setup.md
Created June 14, 2014 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virusvn/4337f68df84b2ca1896c to your computer and use it in GitHub Desktop.
Save virusvn/4337f68df84b2ca1896c to your computer and use it in GitHub Desktop.
  1. #####Clone repo git clone --recursive https://github.com/ushahidi/Lamu

  2. #####Initialize/Update submodules git submodule update --init --recursive

  3. #####Use composer to install dependencies You can get composer here

  • Open cmd and cd to the Ushahidi v3 directory
  • run composer install

This might take a while... 4. #####Create Database On phpmyadmin Open the sql editor and run

CREATE DATABASE <your-database-name>;
GRANT ALL ON <your-database-name>.* to <your-username>@localhost IDENTIFIED BY '<your-password>';
  1. #####Edit database.php
  • Open application/config/database.php
  • Edit it so that hostname, database, username and password match those of the database you just created
  • Copy application/config/database.php to application/config/environments/development/database.php
  1. #####Initialize Database
  • Open cmd
  • cd to Ushahidi v3 directory
  • run php minion --task=migrations:run --up

You need to make sue php is in your PATH for this to work

  1. #####Edit .htaccess
  • Open httpdocs/template.htaccess and rename to .htaccess
  • Edit RewriteBase to the httpdocs directory

This might not be the same for everyone

e.g. my lamu installation is at C:/xampp/htdocs/lamu

my apache is configured to serve documents in `C:/xampp/htdocs`

Therefore, my `RewriteBase` is `/lamu/httpdocs`
  1. #####Edit init.php
  • Open application/config/init.php
  • Edit base_url to match your .htaccess RewriteBase
  • Copy application/config/init.php to application/config/environments/development/init.php
  1. #####Open deployment http://localhost/lamu/httpdocs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment