使用delphi intraweb 开发出来的在iis中运行的ISAPI
程序project.dll,
在服务启动部分的代码中有写文件的动作:在log.txt中写入Server Start 一次。运行成功,在log.txt(原为空白文件)中有Server Start一句可换成apache2模式后http.conf 代码中添加
LoadModule IWDSO2Project_module "C:\ap\cgi\Project1.so"
<Location /test>
   SetHandler project1-handler
</Location>
运行成功,在log.txt(原为空白文件)中有
三句同样的Server Start

解决方案 »

  1.   

    windows下的so文件其实就是dll,没必要加载3次。
      

  2.   

    兄弟.问一个问题.我的so也象你说的一样去发布.但是Apache就启动不了.是怎么回事呢?
      

  3.   

    楼上的,delphi 7 自带的apache2 的duc文件支持到2.0.39 ,但编译出来的文件不可能在2.0.40下运行。主要是.40的接口换了。
    如果看得懂得英文就到这
    http://www.drbob42.com/delphi7/Apache2040.htm
     
    As you may know, Delphi 7 ships with Apache 2.0.39 support, and won't work with .40 due to interface changes done by Apache. Here is what you need to change to support 2.0.40 up to 2.0.55 (released October 2005). 看不懂去找intrawb开发笔记(五)如果不是上面的事情,那我只能说你的配置写错了.