= Install Ushahidi V3 = 1. Get a system with CentOS7 1. download Ushahidi platform {{{ git clone https://github.com/ushahidi/platform.git }}} 1. Install requirements {{{ yum install epel-release yum install mariadb-server php-imap php-mcrypt }}} 1. Install composer {{{ cd /tmp php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php composer-setup.php --install-dir=/usr/local/bin --filename=composer }}} 1. {{{ mysql -u root CREATE DATABASE ushahidi_db; GRANT ALL ON ushahidi_db.* to ushahidi_user@localhost IDENTIFIED BY 'ushahidi-db-password'; quit; }}} 1. Create env file {{{ cd ???? cat > .env << EOL DB_HOST=localhost DB_NAME=ushahidi_db DB_TYPE=MySQLi DB_USER=ushahidi_user DB_PASS=ushahidi-db-password EOL }}} 1. Create ushahidi user {{{ useradd --create-home --shell /bin/bash ushahidi passwd ushahidi su - ushahidi }}} 1. Create DB {{{ mysql -u root -p }}} {{{ CREATE DATABASE ushahidi_db; GRANT ALL ON ushahidi_db.* to ushahidi_user@localhost IDENTIFIED BY 'ushahidi-db-password'; quit; }}} 1. Download API {{{ cd ~ git clone https://github.com/ushahidi/platform.git }}} 1. Create env file {{{ cd ~/platform cat > .env << EOL DB_HOST=localhost DB_NAME=ushahidi_db DB_TYPE=MySQLi DB_USER=ushahidi_user DB_PASS=ushahidi-db-password EOL }}} 1. Install dependencies {{{ bin/update }}} == Build the client == 1. Get Nodejs {{{ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install nodejs }}} 1. Clone client repo {{{ git clone https://github.com/ushahidi/platform-client.git }}} 1. Install dependencies {{{ sudo -i cd /home/ushahidi/platform-client npm install -g gulp npm install }}} 1. build client {{{ BACKEND_URL=http://localhost/ gulp build }}}