kj <> wrote:
> I have a CGI script that fails only if I invoke it via an HTTP
> request, but not if I run the exact same executable locally. In
> the Apache logs I find an error of the form "Can't locate loadable
> object for module Foo::Bar...". I'm wracking my brains trying to
> figure out why the script fails to find the loadable object *only*
> when it is run via an HTTP request.
>
> I have checked all the usual reasons. In particular, 1) the loadable
> object is in /some/path/i586-linux-thread-multi/auto/Foo/Bar/Bar.so,
> and /some/path/i586-linux-thread-multi is in the @INC of the script
> when run via an HTTP request;
Add the line:
-e "/some/path/i586-linux-thread-multi/auto/Foo/Bar/Bar.so" or die $!;
to the program right after the "use CGI::Carp qw(fatalsToBrowser);"
> 2) the loadable object and every
> directory in its path are all world-readable and world-executable;
When you run through the httpd? Maybe you are running httpd in chroot jail
and can't see that path.
Xho
--
--------------------
http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB