- Get a system with CentOS7
- download Ushahidi platform
mkdir /var/www/ushahidi
cd /var/www/ushahidi
git clone https://github.com/ushahidi/platform.git
- Install requirements
yum install epel-release
yum install mariadb-server php-imap php-mcrypt
- 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
- Create the DB
mysql -u root
CREATE DATABASE ushahidi_db;
GRANT ALL ON ushahidi_db.* to ushahidi_user@localhost IDENTIFIED BY 'ushahidi-db-password';
quit;
- Create env file
cat > .env << EOL
DB_HOST=localhost
DB_NAME=ushahidi_db
DB_TYPE=MySQLi
DB_USER=ushahidi_user
DB_PASS=ushahidi-db-password
EOL