[mapserver-users] Thread safety with Php/Mapscript 3.0.1/5.6.6 and IIS 7

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Mar 8 05:21:15 PST 2011


On 11-03-07 9:23 PM, Tom Price wrote:
> Haven't been on this board in a long time. I'm in the process of
> upgrading from PHP 5.2.5 to 5.3.5 and to the latest Php/Mapscript in
> MS4W which is apparently based on Mapserver 5.6.6.
>
> My client plans to host this using the Fast-cgi VC9 version of PHP with
> IIS 7 on a 64-bit Win 2008 Server.
>
> I noticed that the binary in MS4W requires that I install the
> thread-safe version of PHP on IIS. I get this message from phpinfo()
> with the NTS version:
>
> PHP Warning: PHP Startup: MapScript: Unable to initialize module Module
> compiled with build ID=API20090626,TS,VC9 PHP compiled with build
> ID=API20090626,NTS,VC9 These options need to match in Unknown on line 0
>
>
> Is Mapscript now thread-safe? Or is this selection particular to the
> Apache deployment?
>
> Thanks in advance.

Hello Tom,

I have several comments that you might keep in mind as you travel down 
this path for your client:

- MS4W is compiled for 32bit environments; you will either have to 
configure your 64bit server to run 32bit applications, or obtain a 64bit 
version of MapServer (you can contact me directly if you choose the 
latter option)

- MS4W contains a custom PHP version; I have seen errors like that when 
users try to use their own PHP builds with the MS4W mapscript.  Easiest 
way out of that situation is to use the MS4W version of PHP and 
mapscript together.

- if you have any further questions about MS4W be sure to use the MS4W 
mailing list (subscribe at 
http://lists.maptools.org/mailman/listinfo/ms4w-users)

Hope that helps.

-jeff

-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/







More information about the MapServer-users mailing list