zoukankan      html  css  js  c++  java
  • /usr/lib/httpd/modules/libphp5.so: undefined symbol: zend_parse_parameters

    今天在新的服务器配置 php+apache的时候出现了一些错误:

    在执行  /usr/local/apache2/bin/apachectl start 时,提示:

    httpd: Syntax error on line 203 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: undefined symbol: zend_parse_parameters

    google之,得到的结果如下

    for those of you experienceing the zend_parse_paramater error from apache2, while loading libphp5.so:

    /apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol: zend_parse_parameters

    take a look at the ./configure output. if you get a message saying something similar to:

    configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).

    try installing bison: sudo apt-get install bison

    then make distclean then ./configure ... then make then make -i install

    但是我在config.log日志并没有找到关于bision的任何waring。所以就死马当成活马医治。安装了bision的rpm包,然后重启安装php,重启apache,成功。

  • 相关阅读:
    大佬讲话听后感
    P1226快速幂取余
    对拍
    P1017 进制转换
    P1092 虫食算 NOIP2002
    P1003 铺地毯
    P1443 马的遍历
    P1032 字串变换
    P1379 八数码问题
    2-MAVEN 基本命令
  • 原文地址:https://www.cnblogs.com/sworddance/p/2029534.html
Copyright © 2011-2022 走看看