浏览文章
文章信息
Magento2 目录授权
13092
find . -type f -exec chmod 644 {} \; # 644 permission for files
find . -type d -exec chmod 755 {} \; # 755 permission for directory
find ./var -type d -exec chmod 777 {} \; # 777 permission for var folder
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 :www .
chmod u+x bin/magento