jvd has asked for the wisdom of the Perl Monks concerning the following question:
see details below:
browser error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
script:
rights:#!/usr/bin/perl use CGI::Carp('fatalsToBrowser'); use CGI qw(:all); use DBI; print header; $dbh = DBI->connect("DBI:mysql:testjvd:localhost","root","mysqljvd",{ +PrintError => 0}) || die $DBI::errstr; $sth=$dbh->prepare("SELECT * FROM gebr"); $sth->execute(); while ( @ columns = $sth->fetchrow ) { print ( ( map { "$_ " } @columns ) , "\n") ; } $sth->finish(); $dbh->disconnect; exit;
apache error_log:
Tue Sep 11 01:45:16 2001 error (2)No such file or directory: exec of /intranet_attema/cgi-bin/perl_select_gebr.pl failed Tue Sep 11 01:45:16 2001 error client 192.168.1.16 Premature end of script headers: /intranet_attema/cgi-bin/perl_select_gebr.pl
test from command-line:
root@jvd_1 cgi-bin# perl perl_sel*
test1 Jan (returns correct value)
root@jvd_1 cgi-bin#
what's (still) wrong here ? (need some wisdom)
Jan van Dijk,The Netherlands
Thanks in advance....
Edited by boo_radley : formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: again mySQL
by wog (Curate) on Sep 11, 2001 at 02:16 UTC | |
|
Re: again mySQL
by perrin (Chancellor) on Sep 11, 2001 at 02:14 UTC | |
|
Re: again mySQL
by George_Sherston (Vicar) on Sep 11, 2001 at 02:20 UTC | |
|
Re: again mySQL
by higle (Chaplain) on Sep 11, 2001 at 06:34 UTC |