<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>Re: [UMN_MAPSERVER-USERS] Mapscript with php as apache module</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>For Mapserver 4.10 and PHP 5.1.6:<BR>
<BR>
Add this line after all the PHP tests...<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp; test -f &quot;/usr/include/php/Zend/acconfig.h&quot; &amp;&amp;<BR>
PHP_SRC_DIR=&quot;/usr/include/php/&quot; &amp;&amp;<BR>
PHP_CONFIG_H=&quot;/usr/include/php/Zend/acconfig.h&quot;<BR>
<BR>
It is a hack, but it will make the module compile for Apache2/PHP5.&nbsp; Be<BR>
sure to have the php-devel or like package loaded.&nbsp; Once PHP stops moving<BR>
headers around maybe a fix will sneak into the configure script for<BR>
Mapserver.&nbsp; The permutations needed in the last couple updates have been<BR>
numerous.<BR>
<BR>
We are using prefork with no problems.<BR>
<BR>
Several versions of Mapserver compiled fine with PHP5 once you find the<BR>
correct header files and locations.<BR>
<BR>
Details on our manual installation can be gleemed from here:<BR>
&nbsp; <A HREF="https://db.aoos.org/wiki/index.php/AOOS_Systems_Software">https://db.aoos.org/wiki/index.php/AOOS_Systems_Software</A><BR>
<BR>
Our base operating system is 32-bit 2007.0 Mandriva<BR>
<BR>
Rob<BR>
<BR>
On Fri, December 22, 2006 5:39 am, Daniel Morissette wrote:<BR>
&gt; Gregor Mosheh wrote:<BR>
&gt;&gt;<BR>
&gt;&gt; Reading those bugzilla entries, that's very encouraging. Thanks for<BR>
&gt;&gt; pointing those out, Antti.<BR>
&gt;&gt;<BR>
&gt;&gt; Any &quot;it works for me&quot; with Unix, Apache 2 (thread or prefork), PHP 5<BR>
&gt;&gt; as a<BR>
&gt;&gt; DSO, using a lot of PHP/Mapscript? Is there an &quot;official&quot; word on the<BR>
&gt;&gt; stability of this configuration? Or am I gonna have to try it myself<BR>
&gt;&gt; for a<BR>
&gt;&gt; few days and post a &quot;it seems to work for me&quot;? :)<BR>
&gt;<BR>
&gt; Yes, version 4.10 should be safe to use with PHP as an Apache module, I<BR>
&gt; am not aware of any outstanding issue on that front... 4.6.1 and 4.8<BR>
&gt; might be okay too, but I'm not sure, so using 4.10 is the safest way to<BR>
&gt; go.<BR>
&gt;<BR>
&gt; Daniel<BR>
&gt; --<BR>
&gt; Daniel Morissette<BR>
&gt; <A HREF="http://www.mapgears.com/">http://www.mapgears.com/</A><BR>
&gt;<BR>
<BR>
<BR>
--<BR>
Alaska Ocean Observing System<BR>
Database Manager<BR>
907-474-7948 (skype:rob_cermak)<BR>
</FONT>
</P>

</BODY>
</HTML>