[FGS] loading php_mapscript.so

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Jul 29 18:09:34 EDT 2008


Hi everyone,

I am using FGS 1.0 with mapserver-php:5.2.0 module.  All is fine,  
except when I try to load php_mapscript.so in the following script:

<?php
   if (dl( "php_mapscript.".PHP_SHLIB_SUFFIX ))
   phpinfo();
?>

The error I get is extremely odd:

Warning: dl() [function.dl]: Unable to load dynamic library '/home/fgs/ 
fgs-dev/built/php/lib/php/extensions/no-debug-non-zts-20060613/ 
php_mapscript.so' - /home/fgs/fgs-dev/built/php/lib/php/extensions/no- 
debug-non-zts-20060613/php_mapscript.so: cannot open shared object  
file: No such file or directory in /home/jeff/fgs/www/htdocs/ 
phpinfo_mapscript.php on line 2

That path is no-where in my environment.  My $FGS_HOME is a simple / 
home/jeff/fgs/.  I do not have a "/home/fgs/fgs-dev" path.

A straight phpinfo shows odd values of things like the path to php.ini  
being "/home/fgs/fgs-dev/built/php/lib "....which does not exist on my  
system.

Odd.

I have checked the values in /home/jeff/fgs/www/conf/php.ini.template  
and proper values (such as extension_dir path) exist.

Anyone see what I am doing wrong?


---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/







More information about the Foss-gis-suite mailing list