[Zope-dev] Re: using mod_pcgi2 as a DSO
Oleg Broytmann
phd@phd.russ.ru
Thu, 3 Feb 2000 10:02:19 +0000 (GMT)
On Thu, 3 Feb 2000, Hannu Krosing wrote:
> Where can I find instructions for using mod_pcgi2 as an apache DSO ?
>
> I tried it the obvious way (--activate-module=src/modules/pcgi2/libpcgi2.a
> --enable-shared=mod_pcgi2) but apache just seems to ignore it ;(
It is not a problem with the module, but with Apache. When I compiled
Apache on Linux and Solaris in DSO mode, I tried to make my module (along
with PyApache and some other 3rd-party modules) DSO - and failed. Later I
looked into apache's Configure script, inserted a lot of debugging there...
It seems apache handles 3rd-party modules a little different, so it was
hard to make it DSO, but finally I managed to do this! I do not rememeber
exact steps. I think I did this the following way:
./configure --activate-module=src/modules/pcgi2/libpcgi2.so
edit src/Configuration.apaci and replace AddModule with SharedModule
edit src/Makefile and remove shared modules from MODULES macro
make && make install && some tweaking with httpd.conf later...
Oleg.
----
Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.