On Fri, 10 Mar 2006 20:26:38 +0000, Brian Wakem wrote:
> You need to check your web server's error log.
godaddy says that on my shared hosting, I can't access the server's error
log. The guy said that even he can't.
The help guy I just spoke with said that their CGI guy stuck this into my
/cgi directory and ran it, and it confirmed for him that CGI was
functional on my site:
#!/usr/bin/perl
print <<EndBlock01;
Content-type: text/html
<html>
<head>
<title>
INFO.CGI
</title>
</head>
<body bgcolor = "#ffffff">
<center>
<h2>
Display info: what do I know?
</h2>
</center>
<h3>Environment:</h3>
EndBlock01
while(($ekey, $eval) = each(%ENV)){
print "$ekey : $eval<br>\n";
if ($ekey eq 'PATH') {
$path = $eval;
}
}
print <<EndOtherBlock;
<hr>
<h3>Other Interesting Info:</h3>
<tt>
EndOtherBlock
$uname = `uname -a`;
print "Uname info : $uname<br>\n";
$mydir = `ls -ld .`;
print "Working directory : $mydir<br>\n";
$mypath = `pwd`;
print "Path to current directory : $mypath<br>\n";
$myid = `id`;
print "Ids : $myid<br>\n";
$tarfound = $perlfound = $smfound = 0;
@paths = split(/:/, $path);
foreach (@paths) {
if ( -e "$_/tar" ) {
$tarfound = 1;
print "Tar found : $_/tar<br>\n";
}
if ( -e "$_/perl" ) {
$perlfound = 1;
print "Perl found : $_/perl<br>\n";
$perlversion = `$_/perl -v`;
print "Perl version : $perlversion<br>\n";
}
if ( -e "$_/sendmail" ) {
$smfound = 1;
print "Sendmail found : $_/sendmail<br>\n";
}
}
if ($tarfound == 0) {
print "Could be TROUBLE: tar not found on server PATH<br>\n";
}
if ($perlfound == 0) {
print "Could be TROUBLE: perl not found on server PATH<br>\n";
}
if ($smfound == 0) {
print "Could be TROUBLE: sendmail not found on server PATH<br>\n";
}
print <<EndBlock02;
</tt>
</body>
</html>
EndBlock02
They insist that it's a scripting error.
I do have access to a "Web Stats" interface, and under "Directory Report",
I see many requests to directories such as /images, root, /styles, and
/stats, but NONE to /cgi. This suggests to me that the html page isn't
even getting that far.
So this is where I'm at: I have a working script, functional CGI, and a
web page that seems to be passing the correct values. But it appears the
values are going nowhere. I am at a loss. And support at godaddy is not
helping. I can't move forward.
The web page sits in the root directory. The script sits in /cgi. Any
references to that script would be href="cgi/script.cgi", correct? What
the hell's going on here?
Sorry, but this is frustrating. Any more ideas, anyone?
And thanks for your time.
--
"Because all you of Earth are idiots!"
¯`ˇ.¸¸.ˇ´¯`ˇ-> freemontŠ <-ˇ´¯`ˇ.¸¸.ˇ´¯
>> Stay informed about: is it the host or is it me?