Skip to content

Instantly share code, notes, and snippets.

@natdempk
Forked from tevin/Lamu-setup.md
Last active August 29, 2015 14:01
Show Gist options
  • Save natdempk/f88f2568b1fbdeb911e4 to your computer and use it in GitHub Desktop.
Save natdempk/f88f2568b1fbdeb911e4 to your computer and use it in GitHub Desktop.
fix numbering
  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
  1. #####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 for 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