CHMOD folder permissions to access by http
Solution 1:
By default, Apache on Ubuntu runs as www-data.
Let's assume your folder is located in /var/www/mysite.
You can do this:
chown -R www-data:www-data /var/www/mysite
chmod -R og-r /var/www/mysite
After doing this, www-data (the Web server) will have full access to the site's files, while other non-root users will have no access at all.
If you wish to allow select users to access the site, you can make the folder group-readable and add those users to the group www-data.
Solution 2:
Probably what will work is running your webserver under a dedicated user, have that user be the owner of the folder, and then chmod 700 the folder.
Solution 3:
chmod 711 Worked for me. I found this useful tool that help me a loot understanding CHMOD http://www.javascriptkit.com/script/script2/chmodcal.shtml