[Mapserver-users] Using Mapscript with PHP as a module or compiled into Apache (static)

Benjamin Wragg bwragg at tpg.com.au
Thu Jun 26 15:23:26 PDT 2003


Thanks Daniel. Any idea on when this may be fixed? I know that's hard to
say an exact time, but is it a low or high priority?

Thanks,

Benjamin

-----Original Message-----
From: Daniel Morissette [mailto:morissette at dmsolutions.ca] 
Sent: Friday, 27 June 2003 12:09 AM
To: bwragg at tpg.com.au
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Using Mapscript with PHP as a module or
compiled into Apache (static)


Benjamin,

The thread-safety issues in the PHP MapScript wrappers still haven't all
been cleared so you are still forced to use PHP as a CGI for now.

About the php_mapscript_faq.html on our website, as the big red warning
at the top of the page says, this FAQ is out of date and doesn't relfect
today's reality... it used to be possible to use php_mapscript with PHP
as an Apache DSO in the PHP3 days, but with PHP4 it's not yet possible.

Daniel


Benjamin Wragg wrote:
> 
> Hi list,
> 
> I tried to download and install the Zend Performance Suite the other 
> day for evalution. We hope to use it with a Mapscript site we're 
> building. As I went through the install script it checked the php and 
> apache versions and at this point it told me it supports the following

> PHP
> configurations:
> 
> PHP Module libphp4.so
> PHP compiled into Apache (static)
> 
> Since I've always run Mapscript through a CGI setup of PHP I started 
> to do a bit of reasearch as to how this effects Mapscript. This is 
> what I
> found:
> 
> >From what I've learn't from
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI & 
> http://www2.dmsolutions.ca/webtools/php_mapscript/php_mapscript_faq.ht
> ml
> #2.3, Mapscript can be used with PHP built as either a PHP Module or
PHP
> compiled into Apache.
> 
> The only thing that has to be done on the Mapscript side of things is 
> to use --with-apxs option at compile time.
> 
> Is this correct?
> 
> Is there any other things that need to be done at either the compile 
> of PHP, Apache or Mapscript to get Mapscript to work in this manner?
> 
> Is there any consequenses of using Mapscript with PHP configured as a 
> module or compiled into Apache? E.g something funny like projections 
> not working?
> 
> Is the "thread-safety problems" spoken of in 
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI still 
> around?
> 
> Thanks,
> 
> Benjamin Wragg
>




More information about the MapServer-users mailing list