简体   繁体   English

为了安全起见,Magento安装后应写入哪些文件?

[英]What files should be writable after Magento installation for security?

After an install / setup of Magento on a LAMP Server, what files should be left writable, readable, and/or executable (by owner, group, public)? 在LAMP服务器上安装/设置Magento之后,应保留哪些文件可写,可读和/或可执行(所有者,组,公共)?

What is optimal for a secure magento server? 什么是安全的magento服务器的最佳选择?

All folders should be 775 All files should be 664. 所有文件夹应为775。所有文件应为664。

Now the exceptions: /var should be writable for everyone (777) /media folder should allow web to write in it. 现在例外:/ var应该对所有人都可写(777)/ media文件夹应允许Web写入其中。

You can run those if you have SSH access: 如果您具有SSH访问权限,则可以运行以下命令:

find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;

Atleast that is what Magento Wiki suggest. 这是Magento Wiki所建议的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM