[ka-Map-users] Centos - PHP5 - Apache2 - PHP/Mapscript -
ka-map????
Morgan Pyne
morgan.pyne at gmail.com
Tue Jul 18 01:11:17 EDT 2006
Hi Stephen,
I am successfully using PHP 5.1.4 as DSO, Apache 2.2, Mapscript 4.8.3
on CentOS - built from source. I also built gdal 4.4.9 & proj 1.3.1
libraries, and a patched version of the GD 2.0.33 library (see here
for GD bug details & patch http://lists.maptools.org/pipermail/ka-map-
users/2006-March/001070.html) to get things working. I was able to
use the stock CentOS libraries for other dependencies.
Once I managed to convince PHP and mapscript to link against the same
(patched) GD it has been quite stable. The command 'ldd' was useful
to diagnose problems related to libraries linking against different
versions of other libraries. This was initially my main problem with
stability, and I'd hazard a guess it's the cause of your problems too.
I tend to put packages that I compile myself outside the standard
locations (e.g. in /opt ) to avoid clashing with system libraries and
packages, so I also had to had to force embedding of these paths
while linking to my non-standard library locations, using the '-R'
flag for linking. From memory I think I may also have had to hand-
edit the php mapscript makefile to set the correct include and linker
paths, since the top-level configure script didn't seem to pass these
down.
So, it is indeed possible on CentOS. Hope the above is useful to you.
Good luck!
Regards,
Morgan
On 18/07/2006, at 3:41 PM, Stephen Woodbridge wrote:
> Hi Daniel and Base,
>
> Thank you for your responses. This is good to know. I wrote a
> following
>
> <?php
> echo "<pre>\n";
> $map = ms_newMapObj("/u/data/tiger-maps/tiger2.map");
> echo "Created mapObj\n";
> $img = $map->draw();
> echo "Draw completed\n";
> $url = $img->saveWebImage();
> echo "Save the image to $url\n</pre>\n";
> echo "<img src=\"$url\">\n";
> ?>
>
> which we will try in the morning and see how that fairs. I'm pretty
> sure it is a mapscript issue at this point, now we just have to
> find a clue about what the issue is.
>
> This all works fine on my apachw1 and php4 system :)
>
> -Steve
>
> Base Bloc wrote:
>> Hi Steve,
>> I am successfully using Apache 2, PHP5 and Mapscript on a Fedora
>> Core 4 installation so it sounds like maybe a Centos issue. I know
>> that phpinfo() shows mapscript as installed but have you tested it
>> by trying to generate a map image without using ka-map?
>> When I built Mapserver with PHP5 and Apache 2, I had a similar
>> problem and found that mapscript was the issue. This was a while
>> back so my memory is vague but I think I built PHP5 with php_gd,
>> then created an extentions folder in /somewhere/php/ to place the
>> mapscript.so then added this line to the php.ini: extenion_dir = /
>> some_folder/apache2/php/extensions , maybe worth a try if this
>> isn’t the route you’ve taken already.
>> Cheers,
>> Chris
>> ---------------------------------------------------------------------
>> ---
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
More information about the ka-Map-users
mailing list