Following are the steps:

  1. Install the necessary libraries
  2. Setup the database
  3. Install and Setup DKAN

Install necessary libraries

sudo apt-get update 
sudo apt-get install apache2
sudo apt-get install mysql

Note: write down the password you create for the database

sudo apt-get install php
sudo apt-get install php7.0-mysql php7.0-gd php7.0-gd php7.0-xml php7.0-simplexml php-curl
sudo service apache2 restart

Copy the public IP from your amazon instance page and paste it in your browser. You should see apache welcome page

cd /var/www
chmod -R 755 html 10 cd html
git clone --branch master https://github.com/GetDKAN/dkan-drops-7.git dkan
cd dkan/sites/default
mkdir files; chmod -R 777 files

Note: Change permissions once installation of dkan is complete

cp default.settings.php settings.php; 
chmod 777 settings.php

Change permissions to 644 once installation of dkan is complete

Setup your database

mysql -u root -p 

The password should have been created when you installed the database.

create database dkan;
grant all privileges on dkan.* to 'root'@'localhost';

Install DKAN

  1. Open your browser
  2. Type your ip address/dkan. For example, 127.0.0.1/dkan
  3. Follow instructions
  4. Enjoy DKAN