Allowing ubuntu user to access www folder amazon aws

sudo apt-get install apache2

sudo a2enmod rewrite

sudo apt-get install libapache2-mod-php5

sudo /etc/init.d/apache2 restart

sudo adduser ubuntu www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www