• /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,成功。

  • 相关阅读:
    C语言之分支语句
    C语言之运算符与表达式
    C语言之数据类型④——中文字符
    独特的对象引用:this
    理解赋值“=”的含义
    编写类的 “模板”
    类的定义
    Java语言规范
    第一周总结
    定义常量
  • 原文地址:https://www.cnblogs.com/sworddance/p/2029534.html
Copyright © 2020-2023  润新知