On Thu, 2 May 2002 13:40:48 -0400 (EDT), Lori Thompson wrote:

>I have a simple perl/cgi script which reads the username and password 
>from a form and connects to the database using the Perl DBI module. The 
>script works fine on the command line but not through the web server 
>(unix box). The "use DBI" statement returns a 500 server error message. 
>
>Has anybody come across a similar problem???

Check your server error log. The proper error message must be there.

My guess is that @INC is different when run from the command line and in
a CGI script, and that DBI resides in a location that isn't in @INC the
second time.

Or, one of your required DBI related files is set to a file permission
so the CGI script, running as "nobody", isn't allowed access to it.

-- 
        Bart.

Reply via email to