更新时间:2022-11-25 23:42:28
转到Magento主目录,并仅授予您的Webroot权限.
go to Magento home directory and just give permissions for your webroot.
e.g. (in ubuntu) : sudo chown -R www-data .
您还可以更改权限
chmod 777 -R downloader/*
希望对您有帮助.
在您的magento目录中如何操作(如果需要,请对以下命令使用sudo
.)
How about in your magento directory (use sudo
for below commands if required.):
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
对于Magento商店的正常运行或安装,仅需要写入两个文件夹:
For the normal operation or installation of a Magento store, only 2 folders need to be writable:
/media - for web accessible files, such as product images
/var - for temporary (cache, session) and import/export files