【发布时间】:2020-01-03 00:29:29
【问题描述】:
我在运行 CentOS 7 的 digitalocean VPS 上安装了 Xenforo,我一打开网页就收到此错误。 `验证您的服务器是否可以运行 XenForo 时出现以下错误:
The directory /var/www/html/data must be writable. Please change the permissions on this directory to be world writable (chmod 0777). If the directory does not exist, please create it.
The directory /var/www/html/internal_data must be writable. Please change the permissions on this directory to be world writable (chmod 0777). If the directory does not exist, please create it.
Please correct these errors and try again.
我将如何更改目录的权限,使其可以全局写入?
【问题讨论】:
-
世界可写是非常不安全的。但这里是
chmod 0777 /var/www/html/data /var/www/html/internal_data。您可能需要设置粘性位以减少不安全性。chmod 1777 /var/www/html/data /var/www/html/internal_data. -
错误显示了您需要的命令,但我不建议运行它们。世界可写的东西通常是一个可怕的想法。
-
如果它非常不安全,有什么办法可以继续使用 Xenforo?