Getting MapServer working (PHP MapScript)
Bill Binko
bill at BINKO.NET
Wed Jun 1 14:36:41 PDT 2005
On Wed, 1 Jun 2005, Abe Gillespie wrote:
> Shall I build PHP or MapServer from source?
You should build MapServer from source. Ideally, you should build CVS
HEAD or the latest beta ( 4.6Beta3 ?).
If your PHP Header files are in /usr/include/php, then all you should have
to do is configure with --with-php=/usr and it should detect everything
for PHP. Of course, depending on what else you're using (GDAL, OGR, WMS,
WFS, etc, etc) there are other configure options you'll need.
If you don't build from source right now, perhaps a 4.6beta3 binary is
available (?).
Unfortunately, you are probably in exactly the position I was in when I
decided to tackle this bug: I had a binary PHP that I didn't want to mess
with that was built with the PHP regex. Older versions of Mapserver just
don't play nicely that way. That's what the fix is about: it allows you
to build against a binary PHP (assuming you have the include files) and
uses the right regex.
The good news for you is that there IS a fix now, and "all" you have to do
is build Mapserver 4.6beta from source.
Bill
More information about the MapServer-users
mailing list