[MS4W-Users] Thread safety and Mapscript 3.0.1/5.6.6

Tom Price tom_price at yahoo.com
Tue Mar 8 11:34:05 EST 2011


Moved from mapserver-users. Discussion continues below...

--- On Tue, 3/8/11, Tom Price <tom_price at yahoo.com> wrote:

From: Tom Price <tom_price at yahoo.com>
Subject: Thread safety and Mapscript 3.0.1/5.6.6
To: tom_price at yahoo.com
Date: Tuesday, March 8, 2011, 11:01 AM

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/

**********************

Multi-use server. Prefer to use a standard binary from http://www.php.net. Use of IIS 7 is a requirement. x-64 is an option given that PHP still runs as 32-bit only.

I got php_mapscript.dll to work by installing the thread-safe VC9 version of PHP 5.3.5. But, I'm aware of some of the flaky issues with thread safety.

Is php_mapscript.dll now thread safe? Or, is the modified version of PHP included with MS4W really a NTS version that has been modified to not flag extensions that use different comipler options (i.e. TS vs. NTS).

Thanks in advance.
     


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20110308/5f04aecf/attachment.htm 


More information about the MS4W-Users mailing list