-
#####Clone repo
```git clone --recursive https://github.com/ushahidi/Lamu```
-
#####Initialize/Update submodules
```git submodule update --init --recursive```
-
#####Use composer to install dependencies You can get composer here
- Open cmd and cd to the Ushahidi v3 directory
- run
composer install
- #####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>';
- #####Edit
database.php
- Open
application/config/database.php
- Edit it so that
hostname
,database
,username
andpassword
match those for the database you just created - Copy
application/config/database.php
toapplication/config/environments/development/database.php
- #####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
- #####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```
- #####Edit
init.php
- Open
application/config/init.php
- Edit
base_url
to match your .htaccessRewriteBase
- Copy
application/config/init.php
toapplication/config/environments/development/init.php
- Open deployment http://localhost/lamu/httpdocs/