dev2000 has asked for the wisdom of the Perl Monks concerning the following question:

Strangely, this mod_perl example:
my $r = shift; $r->send_http_header('text/plain'); $r->print("mod_perl rules!\n");
works properly here:

http://www.themagic8ball.com/cgi-bin/rules.pl

but not here:

http://www.killer3d.com/cgi-bin/rules.pl

It's the EXACT same script on the very same (shared) server... any ideas on what's wrong?

feel free to browse my artwork!

Replies are listed 'Best First'.
Re: mod_trouble
by mattriff (Chaplain) on May 19, 2002 at 00:34 UTC
    A few questions:

    1. What error gets logged for the copy that fails?
    2. Are you sure that both domains are configured in httpd.conf to handle .pl files via mod_perl?
    3. Not to be annoying, but -- are you sure it's the exact same script? Little things like uploading via FTP in binary mode could cause such a problem.

    Assuming the answer to #3 is yes, my first guess would be that the failing domain isn't configured for mod_perl. Hard to say, though, without more information.

    - Matt Riffle

      1. failed to open log file fopen: Permission denied (Sat May 18 22:08:38 2002) (error) (client x.x.x.x) Premature end of script headers: .../killer3d.com/cgi-bin/rules.pl

      2. No, but the domains are on the same server and were supposed to be set up identically.

      3. Yes the same. I've learned not to upload scripts in binary mode ;)

      Here's a snip of %ENV: SERVER_SOFTWARE Apache/1.3.22 Ben-SSL/1.47 (Unix) mod_dtcl mod_python/2.7.6 Python/2.1.2 mod_throttle/2.11 mod_perl/1.26 PHP/4.1.2 FrontPage/4.0.4.3 rus/PL30.9