|

楼主 |
发表于 2009-10-31 18:00:44
|
显示全部楼层
搞定了
1.下载apache 2.2.3并安装(其他版本需要修改ap_mmn.inc中的版本号)
2.在ide->package->configure installed packages 中添加 weblaz组件,再选择rebuild ide,
重新启动ide后可选项目列表就有apache module和cgi可以选择
3.用系统自带的demo测试 lazarus\\components\\fpweb\\demo\\helloworld\\apache
apache httpd.conf配置
LoadModule mod_helloworld "<path_to_mod>/mod_helloworld.dll"
<Location /myapache>
SetHandler mod_helloworld
Order allow,deny
Allow from all
</Location>
4.编译项目,把dll拷贝到apache的modules目录,启动apache,在IE中测试
http://<WebServer>/myapache/func1call
5.增加fpwebmodule的action则可接受其他连接访问 |
|