From owner-freebsd-questions@FreeBSD.ORG Sun Aug 24 14:33:08 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 2F81216A4BF for ; Sun, 24 Aug 2003 14:33:08 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A4CB43F85 for ; Sun, 24 Aug 2003 14:33:07 -0700 (PDT) (envelope-from joeyteel@earthlink.net) Received: from 24-116-241-151.cpe.cableone.net ([24.116.241.151] helo=RUKI) by heron.mail.pas.earthlink.net with asmtp (Exim 3.33 #1) id 19r2TW-0003b0-00; Sun, 24 Aug 2003 14:32:38 -0700 From: "Joey Teel" To: "'questions'" Date: Sun, 24 Aug 2003 16:32:31 -0500 Message-ID: <003901c36a87$3ba600d0$0400a8c0@RUKI> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3F48EDC0.5060506@mac.com> Importance: Normal X-ELNK-Trace: 883a5efaa24ed4121aa676d7e74259b7b3291a7d08dfec795cf9d11d857fbf56d2e84675ced15a85350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: 'paul beard' Subject: RE: mod_perl configuration questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: joeyteel@earthlink.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2003 21:33:08 -0000 > Chuck Swiger wrote: >=20 > > When you try to add mod_perl, the result is your perl code=20 > runs faster,=20 > > but apache no longer serves static HTML...? If so, that is=20 > remarkably=20 > > odd. What does the Apache access and error log look like=20 > when you try=20 > > to access a .gif or some such that worked before you added mod_perl? > >=20 >=20 > This is what I get when I uncomment the following lines: >=20 > [Sun Aug 24 09:44:13 2003] [error] access to=20 > /usr/www/movabletype/index.html failed for 192.168.2.10, reason:=20 > file permissions deny server execution >=20 > #PerlModule Apache::Registry > # > #SetHandler perl-script > #PerlHandler Apache::Registry > #Options +ExecCGI > #PerlSendHeader On > #allow from all > # >=20 > --=20 Hi, I had this same problem when I did something similar with my install. When using mod_perl in this fashion, it changes the behavior of the directory and it's subdirectories to behave the same way a ScriptAliased directory would behave, basically, you can't serve static content from that location. Move all the static content (html, css, images, etc.) to a different directory (to use the example from the MT manual, use mt-static) and modify your mt.cfg file to add/change the StaticWebPath option to point to the location of the static files. >From what I remember (this was about 4 or 5 months ago) that was all I had to do to get it working properly. Joey