From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 03:35:01 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ADF437B401 for ; Fri, 4 Apr 2003 03:35:01 -0800 (PST) Received: from maild.telia.com (maild.telia.com [194.22.190.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9064E43F93 for ; Fri, 4 Apr 2003 03:34:59 -0800 (PST) (envelope-from webmaster@swedehost.com) Received: from d1o804.telia.com (d1o804.telia.com [213.64.67.241]) by maild.telia.com (8.12.9/8.12.9) with ESMTP id h34BYvLI004707; Fri, 4 Apr 2003 13:34:57 +0200 (CEST) X-Original-Recipient: freebsd-questions@freebsd.org Received: from thor.swedehost.com ([217.209.211.129]) by d1o804.telia.com (8.10.2p2/8.10.1) with ESMTP id h34BYqb29887; Fri, 4 Apr 2003 13:34:52 +0200 (CEST) From: Hasse Organization: The Valhalla Project To: "Brent Wiese" , Date: Fri, 4 Apr 2003 13:34:34 +0200 User-Agent: KMail/1.5 References: <06a701c2fa4b$8815daa0$0a0114ac@home.bjwcs.com> In-Reply-To: <06a701c2fa4b$8815daa0$0a0114ac@home.bjwcs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304041334.34662.webmaster@swedehost.com> Subject: Re: Mod_perl nightmares X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 11:35:01 -0000 On Friday 04 April 2003 03.43, Brent Wiese wrote: > I have to believe I'm overlooking something simple here, but I'm pulling my > hair out over this... > > I am running 4.5. > > I have the latest ports list. > > I have installed apache 1.3.27, mod_ssl, mod_php 4.3.1 and mod_perl 1.27. > > Previously, it was running the same, minus mod_perl. > > Php is fine. I can still happily access my mysql dbs and have fun with php. > > However, I cannot get a perl prog to run to save my life. > > I don't get any errors with this in my httpd.conf: > LoadModule perl_module libexec/apache/libperl.so > AddModule mod_perl.c > > I tried the most basic httpd.conf additions from http://perl.apache.org. > When I hit the perl cgi w/ my browser, I get asked to download it. The logs > show a 200 success code. > > Execute perms are on the script. All it does is the basic "hello world" > stuff. > > Here is what I added to httpd.conf, first in the specific virtualhost I > wanted to test this on, then globally, both producing the same results > (this is nearly word-for-word from the mod_perl site): > > Alias /perl/ /usr/local/www/data/maint/perl/ > PerlModule Apache::Registry > > SetHandler perl-script > PerlHandler Apache::Registry > Options +ExecCGI > PerlSendHeader On > allow from all > > > If I insert: > PerlModule Apache::DBI > Which is ultimately what I need, even an "apachectl configtest" core dumps. > I installed Apache::DBI from CPAN. I suspect if/when I fix the first > problem, this one will work too, or at least be more obvious. > > Any ideas? Any more info I can provide? > > Thanks > Brent --------------------- This config is what's working for me. ( This is typed, not cut'n paste, so please check for typos ) Hope it will help. Edit httpd.conf ( After section) ######## Mod_Perl_SetUp ######## Options +ExecCGI +Includes SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On AllowOverride None Options Indexes ExecCGI Includes Order allow,deny Allow from all ############################### And to use SSI and CGI outside of ScriptAliased directories, I have uncommended the following lines : AddHandler cgi-script .cgi AddType text/html .shtml AddHandler server-parsed .shtml -- Best Regards Hasse webmaster@swedehost.com