I am trying to install a Magento 2 in Linux Mint 19. I am facing issue in file permission.

enter image description here

enter image description here

  • 1
    Possible duplicate of Magento 2 folder/file permissions
    – MagenX
    Commented Oct 9, 2018 at 14:25
  • Thanks @MagenX for your reply. I followed that question. I executed commands. But I cant see output in Browser.
    – abu abu
    Commented Oct 10, 2018 at 3:19

1 Answer 1


The issue is with permission with var and generation folder.

Use the below command

chmod -R 777 var generated

Then run your setup:upgrade command.

  • You solution is not working. I am getting same error. i.sstatic.net/cKJMr.png
    – abu abu
    Commented Oct 9, 2018 at 11:23
  • Seems the permission issue is with whole magento 2 code base. Please give the permission to the project root folder, replace 777 with your exact permission as per your server settings. Commented Oct 9, 2018 at 11:25
  • Thanks @Sourabh, What should I do ?
    – abu abu
    Commented Oct 9, 2018 at 11:26
  • 1
    No go to your project folder and then execute the above command. Commented Oct 9, 2018 at 11:46
  • 1
    Your problem is with the missing permissions. Commented Oct 9, 2018 at 11:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.