[FGS] loading php_mapscript.so

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Jul 30 08:47:25 EDT 2008


Daniel,

You are 100% correct: when I would execute "fgs stop ; fgs start" I  
would see a message like:

+ Stoping 'apache':
Warning: PHPRC cannot be set
+ Starting 'apache':
Warning: PHPRC cannot be set

That was yesterday.  Today I logged back in and I no longer get those  
warnings and everything works fine.  ?????  Very odd.  (note that the  
warning above might be worded different as I am not 100% sure of the  
exact warning message)

Maybe after upgrading the mapserver module yesterday I should have re- 
run setenv.

Thanks for your help with this Norm and Daniel.

-jeff



On 30-Jul-08, at 7:26 AM, Daniel Morissette wrote:

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

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







More information about the Foss-gis-suite mailing list