我在ubuntu9.10上安装MYSQL+APACHE+PHP,但在启动apache时,产生错误:
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
我上网查了一下,有同样的错误发生,但原因不同,网上的错误是因为 Permission denied。后来在这个网页上
http://www.linuxforums.org/forum/redhat-fedora-linux-help/87975-configuring-php-work-apache.html找到了问题所在。 原来是缺少bison。
于是
apt-get install bison
然后重新安装php,
make distclean
./configure …
make
make -i install