- Get an amazon instance with Ubuntu 16.4
- Insatll required packes
apt-get update
apt-get upgrade
apt-get install apache2 curl libcurl3 libcurl3-dev php-curl php-memcache memcached vsftpd php-+cli php-mcrypt php-curl php-mysql php-gd unzip php-imap php-json
update-rc.d mysql defaults
a2enmod rewrite
service apache2 restart
- Install Composer
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
- Create ushahidi user
useradd --create-home --shell /bin/bash ushahidi
passwd ushahidi
- Create web folder for user
su - ushahidi
mkdir public_html
cd public_html
- 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;
- 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