[TriLUG] Apache PHP Module fails to load

Craig Duncan craigduncan at nc.rr.com
Mon Jan 23 10:03:13 EST 2006


Josh Vickery wrote:

>It sounds like libclntsh.so.10.1 can't be found because it is not in
>your library path.  You can add directories to your library path by
>either editing the environmental variable LD_LIBRARY_PATH for a user,
>or you can edit /etc/ld.so.conf and run ldconfig if you want to make
>the change global.
>
>  
>

I had tried setting this in the httpd.conf file
SetEnv LD_LIBRARY_PATH 
/usr/lib:/usr/X11R6/lib:/usr/lib/oracle/10.2.0.1/client/lib
but that didn't work, so I then tried setting it in /etc/ld.so.conf and 
that DID work!

Thanks
Craig

>Josh
>
>On 1/23/06, Craig Duncan <craigduncan at nc.rr.com> wrote:
>  
>
>>Trying to load support for Oracle in PHP, but get the following in the
>>apache error log
>>
>>PHP Warning:  PHP Startup: Unable to load dynamic library
>>'/usr/lib/php/modules/oci8.so' - libclntsh.so.10.1: cannot open shared
>>object file: No such file or directory in Unknown on line 0
>>
>>Both files exist, but how do I get apache to recognize libclntsh which
>>is located at /usr/lib/oracle/10.1.0.4/client/lib/libclntsh.so.10.1?
>>
>>C
>>--
>>TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
>>TriLUG Organizational FAQ  : http://trilug.org/faq/
>>TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>>
>>    
>>
>--
>TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
>TriLUG Organizational FAQ  : http://trilug.org/faq/
>TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>
>
>  
>




More information about the TriLUG mailing list