使用/安装XenForo 2.1.4的文件夹权限错误

嗨,StackOverflow社区, 最近,我将网站从服务器迁移到另一个服务器。两台服务器上的操作系统和Web服务器软件相同(CentOS 7上的Apache HTTPD) 当我转移论坛时,我遇到了一个问题:在管理面板中出现一个错误:

    The following errors occurred while verifying that your server still meets the minimum requirements:
The directory /var/www/html/forum-old/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/forum-old/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.

我尝试了所有。我试图在data /和internal_data /上赋予0777权限。我还尝试递归地授予权限(chmod中的-R)。我还尝试将递归式的授予chown到/ var / www / html / forum

我还尝试安装XenForo的全新安装,它给了我同样的错误

我希望找到一个解决方案。 再见

xuming_11 回答:使用/安装XenForo 2.1.4的文件夹权限错误

这是我在所有Xenforo 2网站上使用的内容,它是在Xenforo论坛上的某个时候共享的。

find /var/www/html/forum-old/ -type f -print0 | xargs -0 chmod 0644
find /var/www/html/forum-old/ -type d -print0 | xargs -0 chmod 0755
find /var/www/html/forum-old/internal_data/ -type f -print0 | xargs -0 chmod 0777
find /var/www/html/forum-old/data/ -type f -print0 | xargs -0 chmod 0777
find /var/www/html/forum-old/internal_data/ -type d -print0 | xargs -0 chmod 0777
find /var/www/html/forum-old/data/ -type d -print0 | xargs -0 chmod 0777
chmod 0755 /var/www/html/forum-old

您的错误显示:/var/www/html/forum-old

如果您现在无法使用/var/www/html/forum,则需要在xenforo设置中更新主目录,以便它知道使用新文件夹

本文链接:https://www.f2er.com/2503331.html

大家都在问