In order to fix this Magento 2 problem, you as a web server user need write access to:
var
app/etc
pub
Besides, it is recommended to set 770 permissions for all directories and 660 permissions for all files. For further information, examine this source.
Please note that the mod_rewrite issue in .htaccess requires changing RewriteBase / depending on your configuration. Check this source for further information.