Read the perldocs - do a perldoc search for string "CGI" - on
*nix you can do that search by doing this at the command line:

    perldoc -q CGI

then page down until you find the section titled

   =head2 My CGI script runs from the command line but not the browser.   (500 Server 
Error)

HTH.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

dk henderson [[EMAIL PROTECTED]] wrote:
> 
> I narrowed a problem down to dbi not working with my apache 1.3.20 install on cygwin.
> I can connect to a remote mysql server with dbi/dbd-mysql, from a perl script at a 
>shell prompt
> but not from the localhost apache server.
> Is there an environment variable that I am lacking? The CGI script has
>  $dbh = DBI->connect("$data_source", "$username", "$password", { RaiseError => 1, 
>PrintError => 1, AutoCommit => 1 });
> 
> where are variables just as in the shell perl script.
> 
> thanks for any replies,
> dale
> 

Reply via email to