[mapserver-users] php_mapscript with apache-php-dso

Jan Hartmann j.l.h.hartmann at uva.nl
Tue Aug 3 11:15:44 EDT 2010


  Yes, that did it. Thanks Daniel

Jan

On 08/03/10 15:28, Daniel Morissette wrote:
> We do this in FGS so that's definitely possible.
>
> Try adding a "PassEnv LD_LIBRARY_PATH" after the SetEnv directive in
> your httpd.conf. PassEnv is required for CGI's to receive the env vars,
> and it seems that it is also required for DSO modules.
>
> Daniel
>
> Jan Hartmann wrote:
>>   Hi folks,
>>
>> I have compiled php-mapscript to run under a Linux Apache server with
>> php installed as a dynamic module. My whole binary tree is under $HOME,
>> and programs find their libraries via the environment variable
>> LD_LIBRARY_PATH. Everything works beautiful with PHP installed as a CGI
>> binary, but when PHP is installed as a module, Apache complains at
>> startup that it cannot find the GDAL libraries. It *does* find the
>> PHP-MapScript module, but that module tries to load GDAL, and that
>> library isn't visible, although LD_LIBRARY_PATH is set in Apache's
>> configuration with the SetEnv directive. Other local libraries, like
>> PostgreSQL, are loaded without  any problem.
>>
>> Things are fixed when I set the library environment in /etc/ld.so.conf
>> and run the ldconfig command, but that can only be done by root. I want
>> to create binary distributions that are completely on the user level,
>> not needing any root access at all. Does anyone have a solution for this?
>>
>> Jan
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list