Requirements

Download Ping App

  1. Open a terminal
  2. Clone the project

    git clone https://github.com/ushahidi/pingapp.git 
  3. Check out and update submodules

    git submodule update --init --recursive
  4. Install PHP dependencies using composer

    composer install

Install Ping App

Logs & Cache

  1. Create a logs and cache directory and make them writable.

    mkdir application/cache && chmod 0777 application/cache
    mkdir application/logs && chmod 0777 application/logs

Update configuration files

  1. Copy the following configurations files into the configuration directory. Update them where necessary.

    cp application/config/init.template application/config/init.php
    cp application/config/auth.template application/config/auth.php
    cp application/config/modules.template application/config/modules.php
    cp application/config/redis.template application/config/redis.php
    cp httpdocs/template.htaccess httpdocs/.htaccess

Setup the Database

  1. Create a MySQL Database
  2. Edit the database configuration file

    cp application/config/database.template application/config/database.php 
    return array
    (
    	'default' => array
    	(
    		'type'       => 'mysql',
    		'connection' => array(
    			'hostname'   => 'localhost',
    			'database'   => 'pingapp',
    			'username'   => 'pingapp',
    			'password'   => 'pingapp',
    			'persistent' => FALSE,
    		),
    		'table_prefix' => '',
    		'charset'      => 'utf8',
    		'caching'      => TRUE,
    		'profiling'    => TRUE,
    	)
    );
  3. Update the Ping App database. This command creates all the database and inserts all the base data necessary to run Ping App.

    ./minion --task=migrations:run

Log In!

Go to your website - http://your-website.com/

Default username: admin

Default password: westgate