AH00136:服务器必须在接受连接之前放弃启动权限。请确保已加载 mod_unixd 或其他系统安全模块

AH00136: Server MUST relinquish startup privileges before accepting connections. Please ensure mod_unixd or other system security module is loaded

无法在 macOS Sierra 10.12.6 上启动 httpd Apache/2.4.29 (Unix)。 httpd 和 apache 使用 brew.

安装

/var/log/apache2/error_log 我总是看到:

AH00136: Server MUST relinquish startup privileges before accepting connections.  Please ensure mod_unixd or other system security module is loaded.
AH00016: Configuration Failed

谁能帮我看看哪里出了问题?

在 php.ini 中,您必须放置或取消注释行:

LoadModule unixd_module lib/httpd/modules/mod_unixd.so

这是 Unix 系列平台所需的共享对象文件。 然后重启apache:

brew services restart httpd