Apache2 不加载 mod

编程入门 行业动态 更新时间:2024-10-28 14:22:14
本文介绍了Apache2 不加载 mod_cluster 模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在使用 kvm 在开放星云内实例化 debian jessie 机器.我要安装jboss eap和mod_cluster,所以需要安装apache2服务.

I'm working on a debian jessie machine instantiated inside open nebula with kvm. I have to install jboss eap and mod_cluster, so I need to install the apache2 service.

我按照 mod_cluster 快速入门指南将/etc/apache2/apache2.conf 文件设置如下:

I followed the mod_cluster quick start guide and set the /etc/apache2/apache2.conf file as follow:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule slotmem_module modules/mod_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so

ServerName master
Listen 10.0.0.6:6666
<VirtualHost 10.0.0.6:6666>
  <Directory />
    Order deny,allow
    Deny from all
    Allow from 10.0.0.
</Directory>

KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName nebula
AdvertiseFrequency 5

<Location /mod_cluster_manager>
  Order deny,allow
  Deny from all
  Allow from 10.0.0.
</Location>

当我运行命令/etc/init.d/apache2 start 它返回错误,systemctl status apache2.service -l 显示我:

When I run the command /etc/init.d/apache2 start it return error, systemctl status apache2.service -l shows me:

apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Wed 2015-12-16 15:17:45 CET; 10min ago
Process: 844 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Dec 16 15:17:45 debian apache2[844]: Starting web server: apache2 failed!
Dec 16 15:17:45 debian apache2[844]: The apache2 configtest failed. ... (warning).
Dec 16 15:17:45 debian apache2[844]: Output of config test was:
Dec 16 15:17:45 debian apache2[844]: apache2: Syntax error on line 1 of /etc/apache2/apache2.conf: Cannot load modules/mod_proxy.so into server: /etc/apache2/modules/mod_proxy.so: undefined symbol: ap_escape_html
Dec 16 15:17:45 debian apache2[844]: Action 'configtest' failed.
Dec 16 15:17:45 debian apache2[844]: The Apache error log may have more information.
Dec 16 15:17:45 debian systemd[1]: apache2.service: control process exited, code=exited status=1
Dec 16 15:17:45 debian systemd[1]: Failed to start LSB: Apache2 web server.
Dec 16 15:17:45 debian systemd[1]: Unit apache2.service entered failed state.

我无法理解未定义符号:ap_escape_html"是什么意思以及如何解决它.

I can't understand what "undefined symbol: ap_escape_html" means and how I could resolve it.

预先感谢您的帮助.

更新 1:我尝试从源代码构建 httpd.我也从源代码安装了 pcre 库,但是当我运行 PREFIX/bin/apachectl -k start 时,它返回以下错误:

UPDATE 1: I tried to build httpd from source. I installed the pcre libraries also from source, but when I run PREFIX/bin/apachectl -k start it returns the following error:

/etc/httpd/bin/httpd: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

推荐答案

我在此之后解决了库问题 指南

I solved libraries problems following this guide

这篇关于Apache2 不加载 mod_cluster 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-19 23:59:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/972845.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   mod

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!