|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: Error in running Sybperl CGI under Apache (Win32)
Date: Feb 6 1998 10:20PM
HaiderAziz@caspian.com wrote:
>
> > Michael,
> >
> Thanks for your help! Yes you were absolutely right, the first script
> failed because it didn't have a '#!/perl/bin/perl.exe' at the top of the
> file so Apache was trying to run it with bash. However, I am still
> getting this in the 'error_log':
> ------------------
> DB-Library error:
> Net-Lib protocol driver call to connect two endpoints failed
> Operating-system error:
> Error in creating a socket - Error is 10106
> Can't call method "dbuse" without a package or object reference at
> /Web/cgi-bin/html_tst_pl line 17.
> ------------------
Something is wrong with your environment when the script is run
as a CGI, and this causes the connection to Sybase to fail.
I don't know *what* is wrong, though.
Try writing a little env.pl script that does something like:
#!/perl/bin/perl.exe
print "Content-Type/text-html\n\n";
print "\n";
foreach (keys(%ENV)) {
print "$_: $ENV{$_}\n";
}
print "\n";
__END__
and see which environment variables seem to be wrong (like SYBASE,
etc.).
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@datamig.com -||- http://www.mbay.net/~mpeppler
|