[FGS] loading php_mapscript.so

Daniel Morissette dmorissette at mapgears.com
Wed Jul 30 07:26:58 EDT 2008


Sounds like the PHPRC variable is not set properly. There was an old bug 
about this that may not have been fixed yet:
   http://bugzilla.maptools.org/show_bug.cgi?id=1624

Norm, can you please check that?

Daniel


Jeff McKenna wrote:
> 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/
> 
> 
> 
> 
> 
> _______________________________________________
> Foss-gis-suite mailing list
> Foss-gis-suite at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/foss-gis-suite


-- 
Daniel Morissette
http://www.mapgears.com/


More information about the Foss-gis-suite mailing list