Categorias
Sem categoria

Permissões de Arquivos e Pastas do Magento 2.0

Para setar as permissões de arquivos e pastas do Magento 2.0 corretamente, basta executar os comandos abaixo:

cd <diretorio_de_instalacao_do_magento> 

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

chown -R :<grupo_do_server_web> .

chmod u+x bin/magento