Skip to content

Instantly share code, notes, and snippets.

@tevin
Last active October 29, 2016 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tevin/3280aae2ddacaaa7e9ab to your computer and use it in GitHub Desktop.
Save tevin/3280aae2ddacaaa7e9ab to your computer and use it in GitHub Desktop.
Set-up Info for Installing Ushahidi v3 (Lamu) on Windows 8.1 using XAMPP
  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/
@Nesp
Copy link

Nesp commented Oct 29, 2016

Hi there,

I am trying to install Ushahidi V3 in XAMPP. I cloned the repo, but have a question: which folder should I move to at step .3 of the procedure? Where is the cloned repo stored?

Thank you very much for your time.

Regards,
Vittorio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment