Where and how should I set LD_LIBRARY_PATH?
I tried to add following code to .bash_profile:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/folder_with_library/
export LD_LIBRARY_PATH
I restart apache but in phpinfo() i still see errors, so libraries hasn’t been loaded.
Any help how to set this path?
I need to set that on VPS server – os is linux red-hat.
HTTPd doesn’t use user files. You must modify the
httpdinitscript (under/etc/init.d) to export the variable before starting the server.But best is to figure out where the library in question actually belongs and put it there.