[mapserver-users] [Mac OS X] Impossible to load MapScript module with PHP

Léonard DUMONT dumont.leonard at gmail.com
Fri Dec 11 07:37:45 PST 2015


Thanks. In this directory, I have a file named 'no-debug-non-zts-20100525',
which corresponds to mapscript's API, but not to PHP's one (PHP    compiled
with module API=20131226)...

Cheers,

Léonard.

2015-12-11 16:25 GMT+01:00 William Kyngesburye <woklist at kyngchaos.com>:

> Mavericks, huh.  Well, you can find the system PHP API version in
> /usr/lib/php/extensions on your HD.
>
> > On Dec 11, 2015, at 9:15 AM, Léonard DUMONT <dumont.leonard at gmail.com>
> wrote:
> >
> > Hi and thanks for your answer !
> >
> > I am using Mac OS X 10.9.5 (Mavericks), but I have no idea of how I
> could do this API stuff...
> >
> > Cheers,
> >
> > Léonard.
> >
> > 2015-12-11 16:09 GMT+01:00 William Kyngesburye <woklist at kyngchaos.com>:
> > Yeah, I haven't done anything with Mapserver or PHP in a long time.  If
> and when I do, my plan is/will be to skip a custom PHP and build mapscript
> for the system PHP.  Though that could get messy because different OS X
> versions have different PHP API versions.
> >
> > What OS X version do you have?  On my Yosemite Mac, the system PHP API
> version is 20121212, so maybe you have El Capitan?  It's possible that the
> system php (your API=20131226) is running in Apache, it's a bit tricky to
> get Apache to use a custom PHP, and especially on El Capitan with it's SIP
> security it might be harder.  You might have to do the whole AMP stack
> custom.
> >
> >
> > > On Dec 11, 2015, at 8:15 AM, Léonard DUMONT <dumont.leonard at gmail.com>
> wrote:
> > >
> > > Thanks for your advices. The PHP binaries from kyngchaos.com are a
> little bit old, I'll try to see on the Homebrew list.
> > >
> > > Cheers,
> > >
> > > Léonard.
> > >
> > > 2015-12-11 14:28 GMT+01:00 Ben Madin <ben at ausvet.com.au>:
> > > Did you look at kyngchaos.com
> > >
> > > Even if you only use his unix frameworks, then compile your own php,
> you will be most of the way there.
> > >
> > > otherwise, if you want to persist with home-brew, I’d put it onto
> their list
> > >
> > > cheers
> > >
> > > Ben
> > >
> > >
> > >
> > >
> > >> On 2015-12-11, at 20:38 , Léonard DUMONT <dumont.leonard at gmail.com>
> wrote:
> > >>
> > >> Finally it was not so hard, but the problem is still the same... I
> have PHP 5.6.16 and Mapscript 6.4.1 both installed with Homebrew, and I
> still have the same error :
> > >>
> > >> Warning: PHP Startup: MapScript: Unable to initialize module
> > >> Module compiled with module API=20100525
> > >> PHP    compiled with module API=20131226
> > >> These options need to match
> > >>  in Unknown on line 0
> > >>
> > >> Any ideas ?
> > >>
> > >> Best regards,
> > >>
> > >> Léonard Dumont
> > >>
> > >> 2015-12-11 13:03 GMT+01:00 Léonard DUMONT <dumont.leonard at gmail.com>:
> > >> Ok, thanks for your answer. I thought there could have been another
> solution, but I'll try to install PHP with homebrew.
> > >>
> > >> Cordialement,
> > >>
> > >> Léonard Dumont
> > >>
> > >> 2015-12-11 10:33 GMT+01:00 Ben Madin <ben at ausvet.com.au>:
> > >> Um, you are correct, the extension has not been compiled to work with
> the same version of php as you are trying to use.
> > >>
> > >> I can only suggest that you get your php from the same source as your
> mapscript... (I guess homebrew, but my success there has been limited and
> conflicted) or compile php yourself, them mapserver with the php-mapscript
> option set.
> > >>
> > >> You may be up for some pain...! You could also try kyngchaos.com,
> but I'm not sure if he is still providing a php suitable for what you want.
> > >>
> > >>
> > >>
> > >> On 10 December 2015 at 17:28, Leonard <dumont.leonard at gmail.com>
> wrote:
> > >> Hi everyone !
> > >>
> > >> I am a new user trying to use mapserver, and I have some problems...
> One of
> > >> them is that I cannot load the php_mapscript extension. I have PHP
> 5.6.11
> > >> installed with  php-osx.liip.ch <http://php-osx.liip.ch>   and
> mapscript 6.4
> > >> installed with Homebrew, and there seems to be a conflict, since when
> I run
> > >> php I get this warning :
> > >>
> > >> Warning: PHP Startup: MapScript: Unable to initialize module
> > >> Module compiled with module API=20100525
> > >> PHP    compiled with module API=20131226
> > >> These options need to match
> > >>
> > >> I added this line to my php.ini file :
> > >>
> > >> extension="/usr/local/opt/mapserver-64/mapscript/php/php_mapscript.so"
> > >>
> > >> Thanks for your help !
> > >>
> > >> Léonard Dumont.
> > >>
> > >>
> > >>
> > >> --
> > >> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Mac-OS-X-Impossible-to-load-MapScript-module-with-PHP-tp5240669.html
> > >> Sent from the Mapserver - User mailing list archive at Nabble.com.
> > >> _______________________________________________
> > >> mapserver-users mailing list
> > >> mapserver-users at lists.osgeo.org
> > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > >>
> > >>
> > >>
> > >> --
> > >>
> > >> Ben Madin
> > >> BVMS PhD, MANZCVS
> > >>
> > >> t : +61 8 6102 5535
> > >> m : +61 448 887 220
> > >> e : ben at ausvet.com.au
> > >>
> > >> AusVet Animal Health Services
> > >> Western Australia
> > >>
> > >> www.ausvet.com.au
> > >>
> > >>
> > >> _______________________________________________
> > >> mapserver-users mailing list
> > >> mapserver-users at lists.osgeo.org
> > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > >
> > >
> > > --
> > >
> > > Ben Madin
> > >
> > > t : +61 8 6102 5535
> > > m : +61 448 887 220
> > > e : ben at ausvet.com.au
> > >
> > > AusVet Animal Health Services
> > >
> > > 18/27 Market Street, Fremantle
> > > Western Australia
> > >
> > > AusVet's website:  http://www.ausvet.com.au        Find our office:
> http://w3w.co/leader.code.frozen
> > >
> > > This transmission is for the intended addressee only and is
> confidential information. If you have received this transmission in error,
> please delete it and notify the sender. The contents of this email are the
> opinion of the writer only and are not endorsed by AusVet Animal Health
> Services unless expressly stated otherwise. Although AusVet uses virus
> scanning software we do not accept liability for viruses or similar in any
> attachments. Thanks for reading. The average disclaimer at the bottom of an
> email is probably never read but contributes substantially to increasing
> the size of packet being sent through the internet and ultimately
> congestion.
> > >
> > >
> > > _______________________________________________
> > > mapserver-users mailing list
> > > mapserver-users at lists.osgeo.org
> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> > -----
> > William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> > http://www.kyngchaos.com/
> >
> > "I ache, therefore I am.  Or in my case - I am, therefore I ache."
> >
> > - Marvin
> >
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "Time is an illusion - lunchtime doubly so."
>
> - Ford Prefect
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20151211/c0030d16/attachment-0001.html>


More information about the mapserver-users mailing list