<!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>
test -f "/usr/include/php/Zend/acconfig.h" &&<BR>
PHP_SRC_DIR="/usr/include/php/" &&<BR>
PHP_CONFIG_H="/usr/include/php/Zend/acconfig.h"<BR>
<BR>
It is a hack, but it will make the module compile for Apache2/PHP5. Be<BR>
sure to have the php-devel or like package loaded. Once PHP stops moving<BR>
headers around maybe a fix will sneak into the configure script for<BR>
Mapserver. 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>
<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>
> Gregor Mosheh wrote:<BR>
>><BR>
>> Reading those bugzilla entries, that's very encouraging. Thanks for<BR>
>> pointing those out, Antti.<BR>
>><BR>
>> Any "it works for me" with Unix, Apache 2 (thread or prefork), PHP 5<BR>
>> as a<BR>
>> DSO, using a lot of PHP/Mapscript? Is there an "official" word on the<BR>
>> stability of this configuration? Or am I gonna have to try it myself<BR>
>> for a<BR>
>> few days and post a "it seems to work for me"? :)<BR>
><BR>
> Yes, version 4.10 should be safe to use with PHP as an Apache module, I<BR>
> am not aware of any outstanding issue on that front... 4.6.1 and 4.8<BR>
> might be okay too, but I'm not sure, so using 4.10 is the safest way to<BR>
> go.<BR>
><BR>
> Daniel<BR>
> --<BR>
> Daniel Morissette<BR>
> <A HREF="http://www.mapgears.com/">http://www.mapgears.com/</A><BR>
><BR>
<BR>
<BR>
--<BR>
Alaska Ocean Observing System<BR>
Database Manager<BR>
907-474-7948 (skype:rob_cermak)<BR>
</FONT>
</P>
</BODY>
</HTML>