---
title: "Magento 2 Permissions"
canonical: "https://techwiki.co.uk/cms/magento-2-permissions"
author: "Adam Birds"
article_type: "documentation"
published: "2026-08-10T23:29:32.100Z"
updated: "2026-08-10T23:29:32.101Z"
categories: ["Cms"]
tags: []
---**Once you have setup the document root, and extracted the Magento Files, please run the following to set the correct permissions:**

**Ensure these commands are ran from within the htdocs directory:**

```

find . -type f -exec chmod 644 {} ';'
find . -type d -exec chmod 755 {} ';'
find ./var -type d -exec chmod 777 {} ';'
find ./pub/media -type d -exec chmod 777 {} ';'
find ./pub/static -type d -exec chmod 777 {} ';'
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml

```
