Apache 2.4 加载模块失败 Cannot load modules/mod_actions.so into server

Windows 2020-03-03 阅读 987 评论 0

问题描述

https://www.apachelounge.com/download/下载 windows 版本 Apache 24 安装包,尝试启动运行 httpd.exe,报错了,提示找不到模块。

D:\develop\opt\Apache24\bin>httpd.exe
httpd.exe: Syntax error on line 75 of D:/develop/opt/Apache24/conf/httpd.conf: Cannot load modules/mod_actions.so into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3

解决方案

在 Apache24 目录下的 modules 文件夹可以找到mod_actions.so,可以使用2种方法解决。

  • 使用全局路径引用模块
LoadModule actions_module D:/develop/opt/Apache24/modules/mod_actions.so

使用这种方法,需要将所有模块都使用绝对路径,比较繁琐。

  • 修改 ServerRoot 路径
Define SRVROOT "D:/develop/opt/Apache24"
ServerRoot "${SRVROOT}"
最后更新 2020-03-03