how to set LD_LIBRARY_PATH on VPS red-hat linux to be visible by apache

view story

http://serverfault.com – Where and how should I set LD_LIBRARY_PATH to be visible by apache? 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. It was working for command: echo $LD_LIBRARY_PATH. Any help how to set this path? I need to set that on VPS server - os is linux red-hat. /etc/init.d/httpd file content: #!/bin/bash # # Startup script for the Apache Web Server # # chkconfig: - 85 15 # description: Apache is a Wo (HowTos)