I'm just starting the experience of Magento 2.1.2 but I'm having trouble :
I can't acces to Magento directory due of an error 500.
I've put the directory in
chmod 775 but my NGINX log say :
2016/10/16 12:56:18 [error] 31168#31168: *512 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Magento\Framework\Exception\FileSystemException: The file "/var/www/magento/var/.regenerate" cannot be deleted Warning!unlink(/var/www/magento/var/.regenerate): Permission denied in /var/www/magento/vendor/magento/framework/Filesystem/Driver/File.php:382
So it's seems to be a permission issue. Anyone get an idea?