[mapserver-users] Cannot dynamically load php_mapscript.so

Stephen Woodbridge woodbri at swoodbridge.com
Sun Apr 21 08:35:18 EDT 2002


Puneet Kishor wrote:
> 
> Warning:  Cannot dynamically load php_mapscript.so - dynamic modules are
> not supported
> 
> I get the above error trying to load the so. My phpinfo() shows me that
> enable_dl is "on", yet it also says the "Dynamic Library Support is not
> available"
> 
> What is it that I am missing? PHP 4.0.6 is compiled --with-apxs against
> Apache 1.3.24.

Well this does not answer your question, but points at another problem.
Your PHP is an apache DSO (because you compiled it --with-apxs) this is
not PHP was a CGI which is required for PHP/Mapscript. You will get all
kinds of runaway process issues, random PHP crashes and other issues if
you use your system in this configuration.

If you want PHP as a DSO for other applications that is fine, but you
need to build a CGI version for use with Mapscript and change you php
file extensions to be different and configure apache to use the CGI for
PHP/mapscript file extension.

There has been a lot writen about this in the archives and DM Solutions
has a detailed instructions on their site. Also look at wiki which is
probably the best starting point.

-Steve W.



More information about the mapserver-users mailing list