DBD and Oracle
501173Jul 17 2006 — edited Mar 8 2011Hi,
I would like to run a perl script that needs a dbi database connection.
When I ran my perl program using the command line:
perl perlprogramname.pl
It worked fine.
But when I ran the program using webserver apache,
I got the error message: Internal Server Error.
The following error message was found in the log file:
install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm
Compilation failed in require at (eval 4) line 3.
Perhaps a required shared library or dll isn't installed where expected
at /home/username/public_html/cgi-bin/test.pl line 32
[Fri Jul 14 13:43:13 2006] [error] [client 111.2.111.111] Premature end of script headers: /home/username/public_html/cgi-bin/test.pl
[Fri Jul 14 13:43:13 2006] [error] [client 111.2.111.111] File does not exist: /usr/local/apache/htdocs/favicon.ico
A perl program containing no dbi connection can be run without errors using webserver.
Can someone please help me?
Thanks