【发布时间】:2021-11-14 00:00:57
【问题描述】:
我已经搜索了几个小时,但找不到解决方案。我已经尝试了很多东西,甚至开始列出这些东西。因此,请提供任何帮助。
我已更改 httpd.conf 中的 htdocs 文件夹位置,因为我已将所有文件同步到云存储。这在我的 Windows 机器上完美运行,但在 linux 上却没有那么多。每件事都运行得很完美,但是当我尝试访问我的 htdocs 文件夹(新位置)时,我收到一条消息:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.48 (Unix) OpenSSL/1.1.1k PHP/8.0.10 mod_perl/2.0.11 Perl/v5.32.1
但是当我将位置更改回正常位置时,它可以完美运行。
我已经授予对该文件夹的完全访问权限。
【问题讨论】:
-
"我已经授予了对该文件夹的完全访问权限。" — 这到底是什么意思?
-
新的 htdocs 文件夹拥有完整的读写权限
-
父文件夹呢?
-
我刚刚完成并解决了问题,谢谢
标签: php linux ubuntu xampp htdocs