From owner-freebsd-questions Mon Feb 11 6:24: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from roc-66-66-72-6.rochester.rr.com (roc-66-66-72-6.rochester.rr.com [66.66.72.6]) by hub.freebsd.org (Postfix) with ESMTP id 9E3C537B405 for ; Mon, 11 Feb 2002 06:24:02 -0800 (PST) Received: by roc-66-66-72-6.rochester.rr.com (Postfix, from userid 1000) id 9FA6E901A5F; Mon, 11 Feb 2002 09:23:45 -0500 (EST) Date: Mon, 11 Feb 2002 09:23:45 -0500 From: mpd To: Matt H Cc: questions@freebsd.org Subject: Re: apache/mod perl not friendly - solved Message-ID: <20020211092345.A83803@rochester.rr.com> References: <20020210193323.A38732@rochester.rr.com> <20020211135906.36d241dd.matt@proweb.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020211135906.36d241dd.matt@proweb.co.uk>; from matt@proweb.co.uk on Mon, Feb 11, 2002 at 01:59:06PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 11, 2002 at 01:59:06PM +0000, Matt H wrote: > On Sun, 10 Feb 2002 19:33:23 -0500 > "mpd" wrote: > > > Hi, > > > > I felt like doing something new, so I installed mod_perl. > > I can fully recommend O'Reilly's "Writing Apache Modules with perl and c" > as seen at http://www.modperl.com Yep, borrowing a copy now, will probably buy it soon. > > Another good place to look of course is : > http://perl.apache.org/ Not when you can't get it to work in the first place. Their documentation is sadly lacking in that dept. Once I was up and running, that site is gold. > > Anyway here's an example : > > ----- file : /usr/local/lib/perl/Apache/Hello.pm ------- > > package Apache::Hello; > > use Apache::Constants qw(:common); > > sub handler { > my $r = shift; > $r->content_type('text/html'); > $r->send_http_header; > $r->print("HI"); > return OK; > } > 1; > > ------- httpd.conf entry -------------- > > > > .. snip other stuff ... > > > SetHandler perl-script > PerlHandler Apache::Hello > > > The lack of any stuff ended up being the problem. I guess that's what happens when you edit the wrong conf file. thanks, mike -- ___________________________________________________________ "HER NAME, MY YOUNG FRIEND, IS APPARENTLY HEADCHEESE." - Pokey the Penguin from "POKEY THE PENGUIN AND HEADCHEESE" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message