How to Reset Default Directory Permission for var www

To solve Error 403 Forbidden when trying to access Apache

Posted by Jefry Dewangga on December 26, 2016

Copy and paste this code to your terminal:

sudo find /var/www/ -type d -exec chmod 755 {} \; && sudo find /var/www/ -type f -exec chmod 644 {} \;