apache2 - Ubuntu apach2,因为路径的组件上缺少搜索权限
问题描述
“因为路径的组件上缺少搜索权限”似乎是一个不时发生的问题。到目前为止,这里没有建议的解决方案有效,所以我不得不再次询问如果我收到上述错误,我可以检查什么。
namei --modes ./index.html
f: ./index.html
drwxr-sr-x .
-rw-r--r-- index.html
在 Ubuntu 20.04 上
解决方案
644
权限可能会导致问题。将它们设置为755
并在必要时重新启动 Apache:
sudo chmod 755 /path/to/source
sudo service apache2 restart
那应该可以解决问题。
推荐阅读
- antlr - Antlr 可以检测到丢失的词法分析器令牌吗
- javascript - 在禁用 3rd 方 cookie 时将 Firebase Auth 与 Netlify 托管的 Web 应用程序一起使用
- javascript - 然后在里面插入异步函数
- android-studio - flutter_polyline_point官方文档给出的例子中这些API_KEY和MAP_API_KEY是什么
- sql-server - mssql-server-windows-express Docker 容器立即停止
- html - h1 不会居中并且不尊重其容器
- mysql - 使用 Mysql + Node.Js 生成唯一键
- php - 如何防止直接访问php页面但重定向时可以访问
- python - 具有复数值的 Numpy 数组赋值出错:“ComplexWarning:将复数值转换为实数会丢弃虚部”
- javascript - 如何根据条件获取 jsp 页面中的图标?