当前位置:web 服务器 > Apache >>

Apache2.0.39(40)+PHP4.2.1/4.2.2在make时错误的解决方法

作者:fei

  到4.2.2也还没改过来--会出现php_functions.c:93: parse error

  make[3]: *** [php_functions.lo] Error 1

  make[3]: Leaving directory `/root/php-4.2.2/sapi/apache2filter'

  make[2]: *** [all-recursive] Error 1

  make[2]: Leaving directory `/root/php-4.2.2/sapi/apache2filter'

  make[1]: *** [all-recursive] Error 1

  make[1]: Leaving directory `/root/php-4.2.2/sapi'

  make: *** [all-recursive] Error 1

  1.configure

  2.改php源码的sapi/apache2filter/php_functions.c的93行在MODULE前面加上AP_

  3.make

  4.make install

  5.libtool --finish --不做也行-少做这步可能会有段错误。--那时再试试--。

  2.0.40的解决办法--除了上面的还要把sapi/apache2filter/sapi_apache2.c的534和535行改成

  ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE);

  ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE);

  就是加NULL即可。本文来自:http://www.xiaoyaxiao.com/1264.html
发表您的高见!
Apache
IIS
Nginx
Tomcat
如果你遇到web 服务器难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,