in reply to URGENTperl test3.cgi runs fine at command line .. Fails when called from browser
Usually, the problem is that the LD_LIBRARY_PATH in your environment contains the path to the Oracle libraries, but for the user that runs CGI scripts (probably the user 'nobody') it doesn't.
One solution is to modify the web server's configuration to set the LD_LIBRARY_PATH environment variable to include the path to the Oracle libraries.
Another solution, the one that I prefer, is to add the path to the Oracle libraries to the /etc/ld.so.conf file, and then run ldconfig. That will make the Oracle library path available to all users.
|
|---|