[Mapserver-users] configure PHP as a cgi

Yewondwossen Assefa assefa at dmsolutions.ca
Mon Feb 3 10:53:06 EST 2003


--------------3B206CAD5D035327BF7B3B23
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi There,

 There is a code in php_mapscript.c (around line 1059)

    if (sapi_module.name && (strcmp(sapi_module.name, "cgi") != 0)

 It should be replaced by


    if (sapi_module.name && (strcmp(sapi_module.name, "cgi") != 0) &&
        (strcmp(sapi_module.name, "cgi-fcgi") != 0))

 I will commit that in the 3.6.4 branch.

Later,

Terrence Lalla wrote:

> Hello,
>
> I am new to Mapserver and trying to make PHPMapscript work with PHP
> 4.3.0 However, the following errors keep coming up in the browser. I
> am on Windows XP. Web Server is Apache.
>
> Fatal error: Due to thread-safety problems, php_mapscript cannot be
> used as a 'cgi-fcgi' module. You will have to reconfigure your PHP as
> a CGI to run this version of MapScript. See
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. in
> c:\apache\htdocs\trinidad\help.php on line 4
>
> Any Suggestions.
>
> Terrence.
>
>
> -----------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now

--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------


--------------3B206CAD5D035327BF7B3B23
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi There,
<p>&nbsp;There is a code in php_mapscript.c (around line 1059)
<p>&nbsp;&nbsp;&nbsp; if (sapi_module.name &amp;&amp; (strcmp(sapi_module.name,
"cgi") != 0)
<p>&nbsp;It should be replaced by
<br>&nbsp;
<p>&nbsp;&nbsp;&nbsp; if (sapi_module.name &amp;&amp; (strcmp(sapi_module.name,
"cgi") != 0) &amp;&amp;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (strcmp(sapi_module.name,
"cgi-fcgi") != 0))
<p>&nbsp;I will commit that in the 3.6.4 branch.
<p>Later,
<p>Terrence Lalla wrote:
<blockquote TYPE=CITE>Hello,
<p>I am new to Mapserver and trying to make PHPMapscript work with PHP
4.3.0 However, the following errors keep coming up in the browser. I am
on Windows XP. Web Server is Apache.
<p><b>Fatal error</b>: Due to thread-safety problems, php_mapscript cannot
be used as a 'cgi-fcgi' module. You will have to reconfigure your PHP as
a CGI to run this version of MapScript. See <a href="http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI">http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI</a>.
in <b>c:\apache\htdocs\trinidad\help.php</b> on line <b>4</b>
<p>Any Suggestions.
<p>Terrence.
<br>&nbsp;
<p>
<hr size=1>Do you Yahoo!?
<br><a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo!
Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign
up now</a></blockquote>

<p>--
<br>----------------------------------------------------------------
<br>Assefa Yewondwossen
<br>Software Analyst
<p>Email: assefa at dmsolutions.ca
<br><A HREF="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>
<p>Phone: (613) 565-5056 (ext 14)
<br>Fax:&nbsp;&nbsp; (613) 565-0925
<br>----------------------------------------------------------------
<br>&nbsp;</html>

--------------3B206CAD5D035327BF7B3B23--





More information about the mapserver-users mailing list