magento 安装并 chmod 777
好的,在knowlege-base中安装magento时说将权限更改为 777。这个对我来说听起来根本不正确吗?事实上,这听起来很不安全,我该怎么办
Ok so in install of magento in the knowlege-base says to changes permissions to 777. is that right that doesn't sound right to me at all in fact it sounds very insecure what should I do
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这取决于您需要对 Magento 安装执行什么操作。如果您想使用管理员界面中内置的 Magento Connect Manager,那么您将需要 777 权限。如果您不希望这样(例如,如果您愿意使用命令行 PEAR 安装程序),则只需将 var/、media/ 和 app/etc/ 目录设置为 777。
It depends on what you need to do with the Magento install. If you want to use the Magento Connect Manager built into the administrator interface then you will need 777 permissions. If you don't want this (such as if you're happy to use the command line PEAR installer) then only the var/, media/ and app/etc/ directories need to be 777.
相当流行的要求,特别是当 php 作为 apache 模块运行时,php 将以与 Web 服务器相同的用户身份运行(通常没有人或类似的用户)。因此,如果不 chmod dir 世界可读/可写,那么 apache 守护进程就无法写入它。这可能是一个安全问题,尤其是在共享主机/服务器上。有让 php 运行特定用户的方法,但这可能最好在 serverfault.com 上讨论。
pretty popular requirement, especially when running php as an apache module as, php will run as the same user as webserver (normally nobody or the like). So without chmoding the dir world readable/writable, then the apache daemon cannot write into it. It can be a security issue especially on a shared hosts/servers. There are was of making php run a specific user, but that would probably be best talked about on serverfault.com.
最好保留 chmod 755
It is better to keep chmod 755