Mapscript with php as apache module

Smith, Michael ERDC-CRREL-NH Michael.Smith at ERDC.USACE.ARMY.MIL
Mon Dec 25 16:18:12 PST 2006


For Mapserver 4.10 and PHP 5.1.6:

Add this line after all the PHP tests...

     test -f "/usr/include/php/Zend/acconfig.h" &&
PHP_SRC_DIR="/usr/include/php/" &&
PHP_CONFIG_H="/usr/include/php/Zend/acconfig.h"

It is a hack, but it will make the module compile for Apache2/PHP5.  Be
sure to have the php-devel or like package loaded.  Once PHP stops moving
headers around maybe a fix will sneak into the configure script for
Mapserver.  The permutations needed in the last couple updates have been
numerous.

We are using prefork with no problems.

Several versions of Mapserver compiled fine with PHP5 once you find the
correct header files and locations.

Details on our manual installation can be gleemed from here:
  https://db.aoos.org/wiki/index.php/AOOS_Systems_Software

Our base operating system is 32-bit 2007.0 Mandriva

Rob

On Fri, December 22, 2006 5:39 am, Daniel Morissette wrote:
> Gregor Mosheh wrote:
>>
>> Reading those bugzilla entries, that's very encouraging. Thanks for
>> pointing those out, Antti.
>>
>> Any "it works for me" with Unix, Apache 2 (thread or prefork), PHP 5
>> as a
>> DSO, using a lot of PHP/Mapscript? Is there an "official" word on the
>> stability of this configuration? Or am I gonna have to try it myself
>> for a
>> few days and post a "it seems to work for me"? :)
>
> Yes, version 4.10 should be safe to use with PHP as an Apache module, I
> am not aware of any outstanding issue on that front... 4.6.1 and 4.8
> might be okay too, but I'm not sure, so using 4.10 is the safest way to
> go.
>
> Daniel
> --
> Daniel Morissette
> http://www.mapgears.com/
>


--
Alaska Ocean Observing System
Database Manager
907-474-7948 (skype:rob_cermak)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061225/e325e287/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RFOHeader2.txt
Type: application/octet-stream
Size: 215 bytes
Desc: RFOHeader2.txt
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061225/e325e287/attachment.obj>


More information about the MapServer-users mailing list