Showing results for 
Search instead for 
Did you mean: 

File permissions error

File permissions error

Hi there! New to Magento and I have an issue with file permissions. I followed the doc and I did the following:


find . -type f -exec chmod 400 {} \;
find . -type d -exec chmod 500 {} \;
find var/ -type f -exec chmod 600 {} \;
find media/ -type f -exec chmod 600 {} \;
find var/ -type d -exec chmod 700 {} \;
find media/ -type d -exec chmod 700 {} \;

Then in the logs I am seeing:


failed: Permission denied (13) in /var/www/Magento/vendor/magento/framework/Session/SaveHandler/Native.php on line 22";i:1;s:8259:"#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/var/www/Magento...', 22, Array)


I see that it says failed permission denied but how to fix? I have tried everything.