服务器 频道

Apache2.0.39+PHP4.2.1在make时错误的解决

  【IT168 服务器学院】Apache2.0.39(40)+PHP4.2.1/4.2.2在make时错误的解决方法

  到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即可。
  

0
相关文章