Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 53193 invoked from network); 10 Jul 2006 19:54:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jul 2006 19:54:58 -0000 Received: (qmail 75328 invoked by uid 500); 10 Jul 2006 19:54:51 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 75138 invoked by uid 500); 10 Jul 2006 19:54:50 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 75127 invoked by uid 99); 10 Jul 2006 19:54:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 12:54:50 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of evan.kaufman@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 12:54:47 -0700 Received: by py-out-1112.google.com with SMTP id f28so3360108pyf for ; Mon, 10 Jul 2006 12:54:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=NaWTa+RuTC7mcNkrvkjufq/R/lZ5Je0E8DmTg5lYfOEN+jVy/tG8j6LwDVz1g4eKmw6etpwK65SbnUFX5nx3IkgWi767GKWVLa04XsBa85qXJkFajHSQhMBNPr0wSMwKDOPleYBn9w6LnUs1GKZK31PKh5pR+986eQR5pT3XPMA= Received: by 10.35.20.14 with SMTP id x14mr5433322pyi; Mon, 10 Jul 2006 12:54:26 -0700 (PDT) Received: by 10.35.18.8 with HTTP; Mon, 10 Jul 2006 12:54:26 -0700 (PDT) Message-ID: Date: Mon, 10 Jul 2006 14:54:26 -0500 From: "Evan Kaufman" To: modperl@perl.apache.org Subject: [QUESTION] mod_perl isnt having any effect...perhaps I've misconfigured? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm running a Gentoo Linux server using Apache 2.0.55-r1 with Perl 5.8.8, and just recently installed mod_perl 2.0.1-r2. However, mod_perl just doesnt seem to work. I get no errors when apache starts up, and theres nothing in apache's error log except some unrelated 404s. It [mod_perl] just...isnt doing anything. My (only) virtual host and mod_perl are configured as follows: # default virtual host NameVirtualHost *:80 DocumentRoot "/home/test/public_html" Options Indexes FollowSymLinks ExecCGI AllowOverride None DirectoryIndex index.htm index.html index.pl index.cgi index.php AddHandler cgi-script .cgi Order allow,deny Allow from all ServerEnvironment apache apache MinSpareProcessors 4 MaxProcessors 20 # mod_perl configuration LoadModule perl_module modules/mod_perl.so SetHandler perl-script PerlResponseHandler Apache2::Status Order deny,allow Deny from all Allow from 127.0.0.1 PerlModule ModPerl::Registry SetHandler perl-script PerlResponseHandler ModPerl::Registry Options -Indexes ExecCGI PerlSendHeader On PerlModule Onomatopoeia SetHandler perl-script PerlHandler Onomatopoeia PerlSendHeader On Now, apache serves html and text documents, and even .cgi scripts (which run through the normal mod_cgi). However, when I run any .pl scripts, for instance http://localhost/perl/test.pl: #!/usr/bin/perl -w print "Content-Type: text/html\n\n"; if($ENV{MOD_PERL}) { print "using mod_perl!\n"; } else { print "NOT using mod_perl!\n"; } I get a "download file" dialog, which means its not sending the text/html content-type header, so its probably not being interpreted (because I am using the PerlSendHeader directive, and the script is chmodded to 755). Additionally, whenever I try to access a .phtml file (which should be parsed by a handler module, Onomatopoeia in this case), it's served up as a static html document. And, if I try http://localhost/perl-status, i get a 404. Am I missing something obvious? Perhaps I stumbled past something in the docs? I appreciate any help, sorry for the length message!