用delphi7新建了“web server applcation”,
只添加了如下事件
procedure TWebModule1.WebModule1testAction(Sender: TObject;
  Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
   Response.Content:='测试!';
end;apache(2.0.47)
httpe 中 添加如下代码:
loadmodule Project1_module "C:\Program Files\Apache Group\Apache2\modules\test.dll"
<location>
sethandler test-handler
</location>重起apache
提示如下错误!
Apache.exe: module "test.dll" is not compatible with this version of Apache (fou
nd 20020612, need 20020903).
Please contact the vendor for the correct version.求错误原因和解决方法!
分不够在加!

解决方案 »

  1.   

    APACHE 1.X和2.X的DSO不同,你在用D7创建WEB应用时要注意选择,是APACHE 1.X还是2.X,不可以混用
      

  2.   

    看情况你的APACHE是太新了,D7出的时候,这个版本的APACHE还没出,所以可能不支持
      

  3.   

    我选择的是2.X,楼上的两位,我该用哪个版本的APACHE ?
      

  4.   

    project中的apacheapp 应改为apacheTwoApplibrary ApacheTest;uses
      WebBroker,
      ApacheApp, //or ApacheTwoApp
      

  5.   

    个人认为 2.x 虽然性能好些,但安全性等方面还是有些问题你现在要么找一个老一点版本的 2.x ,要么改用 1.x ,1.x虽然性能差点,但成熟稳定,安全性也好些