请有用Kylix开发Apache DSO经验的高手帮帮忙 ( 积分: 100 )

F

fssky

Unregistered / Unconfirmed
GUEST, unregistred user!
大家好,我用以下的顺序写了一个DSO程序,编译发布后,Apache提示运行成功,但实际上Apache跟本没运行。
环境:
turbolinux server 6.5
apache 1.3.33
kylix3
1. 安装apache 1.3.33
tar zxvf apache_1.3.33.tar.gz
./configure --prefix=/usr/local/apache/1.3.33 --enable-module=so --enable-module=rewrite --enable-share=max --enable-rule=SHARED_CORE
make
make install
2、启动kylix。新建DSO
file->new->other->web server appaction-> appache share 1.X module
在WebModule上新一个Action,为/test
保存为WebSvrTest.dpr
编译后生成:mod_WebSvrTest.so
3、发布
cp mod_WebSvrTest.so /usr/local/apacle/1.3.33/libexec
修改 httpd.conf 文件,加入:
LoadModule WebSvrTest_module libexec/mod_WebSvrTest.so
<Location /WebSvrTest>
SetHandler mod_websvrtest-handler
</Location>
./bin/apachectl configtest
出现 Syntax OK
./bin/apachectl start
出现 ./bin/apachectl start: httpd started
但其实apache并没有启动
访问不了地址:http://localhost:8080/WebSvrTest/test
netstat -na |grep 8080
查不到apache进程
以上程序在用Delphi7重新编译在windows2000下的Apache1.3.33可以运行。
本人第一次用Kylix 在linux下写程序
让高手见笑了。
 
F

fssky

Unregistered / Unconfirmed
GUEST, unregistred user!
大家好,我用以下的顺序写了一个DSO程序,编译发布后,Apache提示运行成功,但实际上Apache跟本没运行。
环境:
turbolinux server 6.5
apache 1.3.33
kylix3
1. 安装apache 1.3.33
tar zxvf apache_1.3.33.tar.gz
./configure --prefix=/usr/local/apache/1.3.33 --enable-module=so --enable-module=rewrite --enable-share=max --enable-rule=SHARED_CORE
make
make install
2、启动kylix。新建DSO
file->new->other->web server appaction-> appache share 1.X module
在WebModule上新一个Action,为/test
保存为WebSvrTest.dpr
编译后生成:mod_WebSvrTest.so
3、发布
cp mod_WebSvrTest.so /usr/local/apacle/1.3.33/libexec
修改 httpd.conf 文件,加入:
LoadModule WebSvrTest_module libexec/mod_WebSvrTest.so
<Location /WebSvrTest>
SetHandler mod_websvrtest-handler
</Location>
./bin/apachectl configtest
出现 Syntax OK
./bin/apachectl start
出现 ./bin/apachectl start: httpd started
但其实apache并没有启动
访问不了地址:http://localhost:8080/WebSvrTest/test
netstat -na |grep 8080
查不到apache进程
以上程序在用Delphi7重新编译在windows2000下的Apache1.3.33可以运行。
本人第一次用Kylix 在linux下写程序
让高手见笑了。
 
顶部