sh mage2权限
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh mage2权限相关的知识,希望对你有一定的参考价值。
#!/bin/bash
WEB_USER=_www
[ ! -d app ] && echo "Not in Magento 2 root directory" >&2 && exit 1
echo "Settting group ownership to ${WEB_USER}"
chgrp -R $WEB_USER .
echo "Setting directory base permissions to 0750"
find . -type d -exec chmod 0750 {} \;
echo "Setting file base permissions to 0640"
find . -type f -exec chmod 0640 {} \;
echo "Setting group write and sgid bit permissions for writable directories"
find var pub/media pub/static -type d -exec chmod g+ws {} \;
echo "Setting permissions for files in writable directories "
find var pub/media pub/static -type f -not -name .htaccess -exec chmod g+w {} \;
[ -e app/etc ] && {
echo "Making app/etc writable for installation"
chmod g+w app/etc
}
echo "Making vendor/bin scripts executable"
find -L vendor/bin -type f -exec chmod u+x {} \;
echo "Making bin/magento executable"
chmod u+x bin/magento
以上是关于sh mage2权限的主要内容,如果未能解决你的问题,请参考以下文章
Mage2 :传递给 Magento\Paypal\Model\Adminhtml\Express::isOrderAuthorizationAllowed() 的参数 1 必须是 Magento\S
build.sh 文件的权限被拒绝
centOS7下给install.sh添加可执行权限无效。无论用chmod 777 install
LINUX权限错误:-bash: ./startup.sh: Permission denied
在linux下安装installer.sh 但是bash: /mnt/LoadRunner/Linux/installer.sh: 权限不够 pwd显示是root权限
sh变更权限