【发布时间】:2017-05-26 23:34:21
【问题描述】:
我有一个带有以下指令的 .htaccess:
<RequireAll>
Require all granted
Require not ip xx.xx.xxx.xx
</RequireAll>
通过 MAMP 启动 Apache 时,我的 apache 日志中出现以下错误:
Invalid command '<RequireAll', perhaps misspelled or defined by a module not included in the server configuration
我的 Apache 版本是 2.4.23,MAMP 是 4.1,但似乎 mod_authz_core 不是 MAMP 包含的模块。如果这是导致上述错误的原因,我该如何安装 mod_authz_core 模块?
更新: 原来我读错了 MAMP 4.1 的 Apache 版本。它是 2.2xx,显然不支持 mod_authz_core。在努力寻找升级 MAMP 附带的 Apache 的方法后,我放弃并使用 Sierra 的预打包 Apache 和自制软件来配置我自己的“MAMP”来安装 PHP。
【问题讨论】: