I have been having a problem with my scripts during the where I
periodically get a Netscape 4 error saying "Document contains no
data" when they run under mod_perl, but not with the same script
under CGI. And this only happens sometimes; other times the pages
return fine. However, the problem happens very often, even while not
all the time. At some points it happens many times sequentially.
The problems started soon after I switched to mod_perl on my server
using this in the .htaccess file (files named .cgi run as CGI):
<Files *.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Files>
I did a search in the Guide for this error and otherwise looked in
the troubleshooting sections, but could find nothing.
So I am hoping that you all can forgive me for asking help on this problem.
Everything else is working fine as near as I can tell.
I do not use any global variables explicitely, so I don't see how
there could be persistant variable issues. I also print my entire
output with headers in a single print statement.
I am printing the "HTTP/1.0 200 OK\r\n" ahead of the other headers
when running under mod_perl as I am supposed to. And when pages do
display they show evidence of this (no extra header text appears).
I believe that my mod_perl set-up has about 10 child processes in it,
and site traffic is on the order of about 300-1000 hits per day.
Stop/Starting the server did not make a difference. Non perl files
still are served fine so far and so are .cgi files.
Help?
// Darren Duncan