题
我刚刚安装了几个关键补丁并按照此处的说明进行操作。 http://devdocs.magento.com/guides/m1x/other/ht_install-patches.html
我运行以下命令后
chown -R root .
我的网站没有说“未指定输入文件”。
我尝试恢复补丁,但没有任何作用。
有任何想法吗?我需要重置文件权限吗?
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 550 mage
解决方案
您将文件的所有者更改为 root 用户。您的 apache/www-data 似乎无法读取这些文件,这就是为什么将文件权限调整为 644 和 755 解决了该问题。
您应该将文件所有者+组更改回您的网络服务器用户(可能是 www-data
和/或 apache
或具体的内容,如果不确定,请询问您的托管提供商)。您不应该以 root 身份运行您的网上商店文件。
其他提示
这两个命令固定它。
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
.