[mapserver-dev] Re: [mapserver-users] MapServer 5.6.0-beta1 release

Daniel Morissette dmorissette at mapgears.com
Fri Sep 25 08:36:24 EDT 2009


Richard Greenwood wrote:
>    PHP Warning:  PHP Startup: MapScript: Unable to initialize module
>    Module compiled with module API=20060613
>    PHP    compiled with module API=20090626
>    These options need to match
> 
> I interrupt this to mean that my machine's PHP version and the
> MapServer PHP version are out of sync, but I'm probably missing the
> boat.
> 

The PHP API version is not in MapServer's source, it comes from the PHP 
headers/libs that you use to compile. This error means that your 
php_mapscript.so was compiled using a different version of PHP than the 
one that you are using to load it at runtime.

If you built PHP from source, then make sure you point your MapServer 
configure to the right PHP source tree. If you use PHP binary packages 
from your Linux distribution, then make sure you install the 
corresponding php-devel package and point MapServer's configure to it.

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


More information about the mapserver-dev mailing list