Stas Bekman wrote:
You mean a simple script:Jeff Boes wrote:
We moved our webserver from a machine where mod_perl was built under Perl 5.6.1, to a server where it was built under 5.8.1. Now, Perl scripts run but produce no browser output!
print "Content-type: text/plain\n\n"; print "Hello";
doesn't output "Hello"?
You are running under mod_perl 1.0, right? Can we see the output of perl -V? Anything in the error_log?
Yes, that's correct -- even the most basic script produces a blank page.
I don't trust that "blank page" statement, are you sure that there is no output or is that just the browser can't interpret the output? What happens if you use a command line tool:
lynx -dump -mime_header http://localhost:8000/perl/test.pl
(or whatever the URL was). I also assume that you have the 'PerlSendHeader On' in your config. Can we see the relevant httpd.conf section?
If nothing is printed next try with the following script:
my $r = shift; $r->send_http_header("text/plain"); $r->print("Hello");
I believe my mod_perl version is "1.27" (see MOD_PERL environment variable in listing below).
It's 1.26 according to the MOD_PERL environment variable you printed.
Nothing in any log files that I can find. As previously noted, if I insert an open() to my /tmp directory and write to a file there, I can show that the script is actually running.
There aren't "any" log files, you want to find the error_log file and see what it says. You could add:
warn "I'm running";
to your script and you should see that printed into the error_log file, you don't need to use special tricks to check that the script was executed.
Finally show me what's added to the access_log file, when you issue a request.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com