Apache2的不​​加载mod_cluster模块 [英] Apache2 doesn't load mod_cluster modules

查看:1303
本文介绍了Apache2的不​​加载mod_cluster模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作开星云与KVM内实例在Debian杰西机器上。我必须安装的JBoss EAP和mod_cluster,所以我需要安装Apache2的服务。

我跟着mod_cluster快速入门指南和设置文件/etc/apache2/apache2.conf中如下:

 的LoadModule proxy_module模块/ mod_proxy.so
的LoadModule proxy_ajp_module模块/ mod_proxy_ajp.so
的LoadModule slotmem_module模块/ mod_slotmem.so
的LoadModule manager_module模块/ mod_manager.so
的LoadModule proxy_cluster_module模块/ mod_proxy_cluster.so
的LoadModule advertise_module模块/ mod_advertise.so服务器名高手
听10.0.0.6:6666
<虚拟主机10.0.0.6:6666>
  <目录/>
    为了否认,允许
    所有拒绝
    从10.0.0允许。
< /目录>60的KeepAliveTimeout
MaxKeepAliveRequests 0
ManagerBalancerName星云
AdvertiseFrequency 5<位置/ mod_cluster_manager>
  为了否认,允许
  所有拒绝
  从10.0.0允许。
< /地点>

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

  apache2.service  -  LSB:Apache2的Web服务器
加载:加载(/etc/init.d/apache2)
活动:失败(结果:×[出口code),因为周三2015年12月16日十五点17分45秒CET; 10分钟前
工艺:844 ExecStart =的/ etc / init.d /的的Apache2启动(code =退出,状态= 1 /失败)12月16日15时17分四十五秒的debian的Apache2 [844]:启动Web服务器:Apache2的失败!
12月16日15时17分四十五秒的debian的Apache2 [844]:Apache2的configtest失败。 ... (警告)。
12月16日15时17分四十五秒的debian的Apache2 [844]:配置测试的产量为:
12月16日15时17分四十五秒的debian的Apache2 [844]:apache2的:在/etc/apache2/apache2.conf中的第1行语法错误:无法加载的模块/ mod_proxy.so到服务器:/etc/apache2/modules/mod_proxy.so :未定义的符号:ap_escape_html
12月16日15时17分四十五秒的debian的Apache2 [844]:行动configtest失败。
12月16日15时17分四十五秒的debian的Apache2 [844]:Apache的错误日志可能有详细信息。
12月16日15时17分四十五秒的debian systemd [1]:apache2.service:控制过程中退出,code =退出状态= 1
12月16日15时17分四十五秒的debian systemd [1]:无法启动LSB:Apache2的Web服务器。
12月16日15时17分四十五秒的debian systemd [1]:单位apache2.service进入故障状态。

我不明白什么是未定义的符号:ap_escape_html的手段和我怎么能解决这个问题。

预先感谢帮助。

更新1:我试图从源代码编译的httpd。我安装了PCRE库还从源代码,但是当我运行preFIX /斌/ apachectl中-k启动它返回以下错误:

 的/ etc / httpd的/ bin中/ httpd的:错误而载入共享库:libpcre.so.1:无法打开共享对象文件:没有这样的文件或目录


解决方案

我解决了以下这个的指南

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.

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>

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.

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

Thanks in advance for help.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆