dChan


205 : Jim ◆6P7QkQf8Ys : 2007/09/15 (金) 03:18:59 ID: f14CSimT
The excellent engineer smiled on us too. Here is what he did.

If the script using SpeedyCGI is not working,
I cannot examine into the cause any further.
I think that it is a peculiar problem to the script,
and I do not have the ability to analyze.
Thank you.


banana702# cat time2.cgi
#!/usr/local/bin/speedy

use CGI::SpeedyCGI;
my $sp = CGI::SpeedyCGI->new;

$ENV{'TZ'} = "JST-9";
$times = time;
($sec,$min,$hour,$mday,$mon,$year) = localtime($times);
$year=$year+1900; #
$mon=$mon+1; #
print "Content-Type: text/html\n\n";
print "<html><head>\n";
print "<body>\n";
print "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;
charset=x-sjis\">\
n";
print "Time<p>\n";
print "$year/$mon/$mday $hour:$min:$sec<p>";

print "Running under speedy=", $sp->i_am_speedy ? 'y' : 'n', "<p>\n";

$sp->setopt('timeout', 30);
print "maxruns=", $sp->getopt('maxruns'), "<BR>\n";
print "timeout=", $sp->getopt('timeout'), "<BR>\n";

print "</body></html>";
exit;
banana702#

Sincerely yours,

And apache was recompiled and the correct setting was placed on the httpd.conf

This is the correct line.

LoadModule cgidso_module modules/mod_cgidso.so

Sorry for the late reporting. I fell asleep, and the engineer did also
after completing this task.