启动Apache 报错:libphp5.so:undefined symbol: zend_parse_
今天在PHP扩展ssh2的时候,重启apache时候,发现报错,libphp5.so:undefined symbol: zend_parse_parameters,网上找了好久资料,一种是关闭selinux,怕安全性问题没这么做,后来又找到了一个解决方案,如下:
$ /usr/local/apache2/bin/apachectlstart
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
解决方法:
首先,安装bison,bison 是替代yacc的语法分析程序生成器。
$ wget http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz
$ tar-zxvf bison-2.5.tar.gz
$ cdbison-2.5
$ ./configure
$ make
$ makeinstall
然后,重新编译php
$ makeinstalldistclean
$ /usr/local/apache2/bin/apachectlstart
相关推荐
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23