[Mapserver-users] PHP MapScript on Mac OS X?
Gary Condon
gcondon at ll.mit.edu
Thu Mar 18 14:25:34 PST 2004
Bill,
Thanks for your input. Zak pointed out the Wiki previously although I
had already seen it. I am planning to follow it to the letter over the
weekend.
My concern with PHP 4.3.4 on Mac OS X 10.3.2 (now 10.3.3, I guess) is
that my understanding is that the dl() mechanism is broken. Consistent
with that, I can not seem to get dl() to work with any modules -
php_mapscript or otherwise. To be fair, I have never need to use that
mechanism before, even though I have been programming PHP for a couple
of years, so I don't know if I am doing it correctly. I was hoping to
get a yea or nay on whether the mechanism still works before going back
to square one.
I know I need to use PHP compiled as a CGI (rather than a DSO) and I
can set it up that way (like you do). However, I have been struggling
to get my DSO working with one extension and my CGI with the other at
the same time. I was hoping to see a complete httpd.conf setup this
way to cut to the chase but I'm sure if I keep beating on it I'll
figure it out (although I still wouldn't mind seeing a dual-PHP
httpd.conf *wink*).
Gary
On Mar 18, 2004, at 16:57, Wheaton, William D. wrote:
> Gary--
>
> I was able to build mapserver (and php/mapscript) 3.7 on Macos 10.2.3
> ...I
> created some fairly detailed instructions that might still be of use
> to you
> (even though mapserver is at 4.0 and Macos is at 10.3)...
>
> The document is at http://home.nc.rr.com/wwheaton (and it's linked at
> the
> bottom of this mapserver wiki page:
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS). It might answer
> some of
> your questions about where the php_mapscript.so goes and what the
> httpd.conf
> file show look like. Good luck.
>
> Bill
>
>
> -----------------------------------------
> Bill Wheaton
> RTI International
> P.O. 12194, 3040 Cornwallis Rd.
> RTP, NC 27709
> wdw at rti.org, 919-541-6158 (V), 919-541-8830 (F)
>
>
>
> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Gary
> Condon
> Sent: Thursday, March 18, 2004 3:56 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] PHP MapScript on Mac OS X?
>
>
> Lorenzo,
>
> Thanks for the info. I have a couple of questions ...
>
> - Where do you store the compiled php_mapscript.so?
>
> - Do you use PHP's dl() command to load the extension? If so, does it
> return anything? Also, does the extension_loaded() function return
> true?
>
> - Could you email a copy of your httpd.conf & php.ini files (and your
> php configure string if you have it)? I would be appreciative.
>
> Gary
>
>
>> Message: 43
>> Date: Thu, 18 Mar 2004 15:22:08 +0100
>> To: mapserver-users at lists.gis.umn.edu
>> From: Lorenzo Moretti <lorenzo.moretti at bologna.enea.it>
>> Subject: Re: [Mapserver-users] PHP MapScript on Mac OS X?
>>
>> I'm using MapServer-MapScript 4.0.1 under OSX 10.2.8. It works very
>> well and it's speed....
>>
>> I have build mapserver/mapscript with PHP 4.3.3. Gdal is 1.1.9. I'm
>> working for a simple installer for all OS X users with last GDAL-OGR
>> 1.2.0 like my Grass Gis Complete on MAC OS X (see
>> http://wwwamb.bologna.enea.it/forgrass/ ). It's possible to work with
>> PHP/MapScript (.phtml suffix) toghether with PHP for Apache (.php)
>> with Apache under OS X.
>>
>> Now I have
>> /usr/local/php (normal php 4.3.3 for Apache)
>> /usr/local/php_cgi (all php 4.3.3 as CGI)
>> /WebServer/CGI-PHPMapServer (inside there is only a php link to
>> /usr/local/php_cgi/bin/php)
>> /WebServer/CGI-Executables (inside there is mapserv)
>> /sw (all libraries for mapserver and php from
> FINK)
>>
>> The goal is to build MapServer Complete without Fink and with the last
>> libraries with double clic installer.
>>
>> Bye
>>
>>
>>
>> --
>> ______________________________________________________________________
>> _
>> _
>> || Lorenzo Moretti e-mail:
>> lorenzo.moretti at bologna.enea.it
>> ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/
>> || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/
>> (res.)
>> ~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax:
>> +39-0516098131
>> Download GRASS for MAC OS X:
>> http://wwwamb.bologna.enea.it/forgrass/
>> ______________________________________________________________________
>> _
>> _
>>
>>
>> --============_-1132502765==_ma============
>> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>>
>>> Gary,
>>>
>>> These instructions provide some hints on support library builds and
>>> compiling mapserver, though they are a little out of date:
>>>
>>> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MacOS
>>>
>>> With a recent version of OS X like 10.3 and recent versions of
>>> mapserver (from cvs) the build should proceed without problems after
>>> running configure.
>>>
>>> I encourage you to add any updated solutions you find to the wiki
>>> page above, so that others can benefit from your experiences.
>>>
>>> zak
>>> --
>>> Zak James
>>> Applications and Software Development
>>> DM Solutions Group Inc.
>>> http://www.dmsolutions.ca
>>>
>>>
>>> On Mar 16, 2004, at 12:49 PM, Gary Condon wrote:
>>>
>>>> All,
>>>>
>>>> I am trying to get PHP MapScript up and running on Mac OS X 10.3
>>>> but, so far, without success.
>>>>
>>>> I have tried using the precompiled version provided by Server
>>>> Logistics but I can't dl() the module under PHP 4.3.4 or 5.0b4.
>>>>
>>>> Has anybody out there gotten this to work? If so, how?
>>>>
>>>> Thanks is advance,
>>>>
>>>> Gary
>>>>
>>>> _______________________________________________
>>>> Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
>>>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>>
>>>
>>> _______________________________________________
>>> Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
>>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list