[Mapserver-users] configure PHP as a cgi

Dan Barron dbarron at ddive.com
Mon Feb 3 08:42:38 PST 2003


--=====================_247642765==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Terrence,

I use Apache 1.3.27, PHP 4.3.0 w/ PHPMapscript 3.6 on W2K w/o any 
troubles.  Below are the additions you should need to http.conf and php.ini.

http.conf file

ScriptAlias /php/     "c:/bin/php-4.3.0/"  <- directory where php.exe lives>
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php    "/php/php.exe"

php.ini

extension=php_mapscript_36.dll

Dan

At 07:35 AM 2/3/2003 -0800, 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>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!?
><http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com>Yahoo! Mail 
>Plus - Powerful. Affordable. 
><http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com>Sign up now

--=====================_247642765==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
Terrence,<br><br>
I use Apache 1.3.27, PHP 4.3.0 w/ PHPMapscript 3.6 on W2K w/o any
troubles.  Below are the additions you should need to http.conf and
php.ini.<br><br>
<tt>http.conf file <br><br>
ScriptAlias /php/    
"c:/bin/php-4.3.0/"  <- directory where php.exe
lives><br>
AddType application/x-httpd-php .php .phtml<br>
AddType application/x-httpd-php-source .phps<br>
Action application/x-httpd-php   
"/php/php.exe"<br><br>
php.ini<br><br>
extension=php_mapscript_36.dll<br><br>
</tt>Dan<br><br>
At 07:35 AM 2/3/2003 -0800, Terrence Lalla wrote:<br><br>
<blockquote type=cite class=cite cite>Hello,<br><br>
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.<br><br>
<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<br>
</b><br>
Any Suggestions.<br><br>
Terrence.<br><br>
<br>
<br>
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></body>
</html>

--=====================_247642765==.ALT--




More information about the MapServer-users mailing list