[Mapserver-users] --with-php, Mapserver 4.0.1, and Fedora
Daniel Morissette
dmorissette at dmsolutions.ca
Wed Apr 7 18:19:27 PDT 2004
Paul Dugas wrote:
>
> Tried it today with the same setup and got a bit farther but not all the
> way. I installed the php-devel RPM rather than the full source package
> and got it to configure using 'configure
> --with-php=/usr/include/php/main'. Then I manually modified the resulting
> Makefile in mapscript/php3/ changing
>
> PHP_SRC_DIR = /usr/include/php/main
>
> to
>
> PHP_SRC_DIR = /usr/include/php/
>
Interesting coincidence, I was actually working on this exact problem
yesterday and (hopefully) fixed it in the development version (4.1 CVS).
What I found in my tests is that with previous versions of MapServer
(4.0 and older), it should be possible to build against an "installed"
PHP (or the php-devel RPM) if you point configure to the
/usr/include/php directory (do not include main), e.g.
./configure .... --with-php=/usr/include/php
with that you shouldn't have to manually edit the makefile.
With the 4.1 (CVS) version, just using --with-php=/usr should do.
> The build went okay but I got all kinds of errors (didn't record them but
> could if needed) when I copied the SO into the right directory, fired up
> apache, and hit some of the examples. I'm wondering if this might be an
> apache 2.0 problem?
>
Note that PHP MapScript requires PHP configured as a CGI, so if your PHP
RPM is configured as an Apache module that could explain the problems
you had.
Daniel
--
------------------------------------------------------------
Daniel Morissette dmorissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the MapServer-users
mailing list