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

posted @ 2011-04-26 17:07  剑舞  阅读(2608)  评论(0编辑  收藏  举报