大网数据广告活动
服务器运维问答

Cannot load modules/mod_ssl.so into server: /etc/httpd/modules/mod_ssl.so: undefined symbol: ap_array_str_contains

· 52CE 我爱测

I am trying to run Apache on Amazon Linux with SSL for my website and I configured all ssl prerequisites. But when I start the Apache it throws the error saying: Starting httpd: httpd: Syntax error on line 58 of /etc/httpd/conf/h…

问题原文

原帖链接 · Nagarjuna D N · CC BY-SA 3.0

I am trying to run Apache on Amazon Linux with SSL for my website and I configured all ssl prerequisites. But when I start the Apache it throws the error saying:

Starting httpd: httpd: Syntax error on line 58 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.modules.d/00-ssl.conf: Cannot load modules/mod_ssl.so into server: /etc/httpd/modules/mod_ssl.so: undefined symbol: ap_array_str_contains

conf.modules.d/00-ssl.conf file contains:

LoadModule ssl_module modules/mod_ssl.so

Apache httpd version:

Server version: Apache/2.4.12 (Amazon)

I installed mod_ssl using:

yum install mod24_ssl

I am not aware how to troubleshoot this; I am pretty new to apache.

Please help me if anyone would came across the similar issue?

已采纳解答

原帖链接 · bodgit · CC BY-SA 3.0

My hunch would be that the SSL module has been compiled against a different version of Apache than the one trying to load it, given that version 2.4.12 of Apache was released in January 2015 and I can see reference to adding the function ap_array_str_contains() to server/util.c in the Apache source only in September 2015.

What does rpm -q mod24_ssl httpd(*) return? They should both realistically have the same version.

(*) Amazon Linux might name their Apache package slightly differently.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-07-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。