[mapserver-users] php/mapscript installation on fedora 7

Alexandre GARRAUD garraud.alexandre at neuf.fr
Sat May 31 09:29:15 EDT 2008


Hello, Ningchuan

You have added the path to the other compiled lib in /etc/ld.so.conf ?

Ningchuan Xiao a écrit :
> Dear all,
>
> I am having trouble to get php/mapscript work on fedora 7 and I would 
> appreciate any input on this.
>
> I compiled Mapserver 5 successfully and the php_mapscript.so file 
> seems to be built fine (without any compiler error messages). I copied 
> the php_mapscript.so file to the /usr/lib/php/modules directory which 
> also contains other php extensions. In the php.ini file, I added the 
> following two lines:
>
> extension_dir = "/usr/lib/php/modules"
> extension="php_mapscript.so"
>
> I also added a php_mapscript.ini file to the /etc/php.d folder. This 
> file only contains one line:
>
> extension=php_mapscript.so
>
> To test the installation of php/mapscript, I use the example file 
> called phpinfo_mapscript.php, which is as simple as this:
>
> <HTML>
> <?php
> if (PHP_OS == "WINNT" || PHP_OS == "WIN32")
> {
>   dl("php3_mapscript.dll");
> }
> else
> {
>   dl("php_mapscript.so");
> }
>   phpinfo();
> ?>
>
> There is no listing of the mapscript extensions table (there is no 
> such a table actually). I tried the phpinfo_mapscript.phtml file 
> (which has exactly the same content of the php file listed above) but 
> only got a blank page in the browser.
>
> Can anyone please help?
>
> Thanks,
> Ningchuan
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080531/7f5d14a5/attachment.html


More information about the mapserver-users mailing list