Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F73CDA40 for ; Tue, 13 Nov 2012 20:55:06 +0000 (UTC) Received: (qmail 28319 invoked by uid 500); 13 Nov 2012 20:55:03 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 28282 invoked by uid 500); 13 Nov 2012 20:55:03 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 28274 invoked by uid 99); 13 Nov 2012 20:55:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 20:55:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ben@indietorrent.org designates 205.186.134.222 as permitted sender) Received: from [205.186.134.222] (HELO indietorrent.org) (205.186.134.222) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2012 20:54:55 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by indietorrent.org (Postfix) with ESMTP id E35006A3005B for ; Tue, 13 Nov 2012 12:54:33 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at indietorrent.org Received: from indietorrent.org ([127.0.0.1]) by localhost (indietorrent.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3jNvlBqn9EDi for ; Tue, 13 Nov 2012 12:54:22 -0800 (PST) Received: from [127.0.0.1] (cpe-74-75-234-205.maine.res.rr.com [74.75.234.205]) (Authenticated sender: ben@indietorrent.org) by indietorrent.org (Postfix) with ESMTPSA id 274E96A30018 for ; Tue, 13 Nov 2012 12:54:22 -0800 (PST) Message-ID: <50A2B376.9030108@indietorrent.org> Date: Tue, 13 Nov 2012 15:54:14 -0500 From: Ben Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: users@httpd.apache.org References: <509D468D.60205@lsces.co.uk> <50A208AE.8040200@lsces.co.uk> <50A26F73.5070106@globalia-sistemas.com> <50A2790D.1050004@lsces.co.uk> <50A27E14.1060309@indietorrent.org> <50A28237.2000809@lsces.co.uk> <50A2AEF1.1070209@lsces.co.uk> In-Reply-To: <50A2AEF1.1070209@lsces.co.uk> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] 403 Forbidden ... On 11/13/2012 3:34 PM, Lester Caine wrote: > Lester Caine wrote: > > Found a few little niggles while sorting mod_info. I was still running > mod_access_compat and switching that off flagged a couple of problems. > All have now been cleared but no change to the 403 error on rewrite > results. > >> mod_info is now loaded, but currently I'm just flipping to home page >> .... just >> working through the settings. > Now working but locked down locally at present ... > What should I be looking for. > >> Just working through Yehuda's link as well. > I've tried a few things from the mediawiki article but I suspect that is > based on 2.2 working? > > AH - found something! > I've switched the deny off on the '/' level > > From server-info ----- > Current Configuration: > In file: /opt/apache2/conf/httpd.conf > 199: > 201: Require all granted ( Was denied ) > : > 223: > 224: Require all denied > : > 315: > 318: Require all granted > : > In file: /opt/apache2/conf/vhosts.d/25_vhost.eveshamtc.org.uk.conf > 60: > 73: Options FollowSymLinks > 80: AllowOverride All > : > 94: ErrorDocument 404 /index.php > : > > AND THEN I GET > Warning: require_once(../kernel/setup_inc.php): failed to open stream: > No such file or directory in /wiki/index.php on line 16 Fatal error: > require_once(): Failed opening required '../kernel/setup_inc.php' > (include_path='.:/opt/php5/lib/php:/opt/php5/lib/php/PEAR') in > /wiki/index.php on line 16 > > Which is telling me that the rewrite has lost the local directory > details for the vhost ... Or at least I think that is the problem? > Are you defining a RewriteBase amongst your mod_rewrite rule(s)? If so, what is the value? Still, I'm not sure that this has anything to do with URL-rewriting. This seems related to path resolution in the PHP application (which mod_rewrite may influence, to be fair). This is why any developer that uses relative file paths in this way should be scorned, publicly. But that's here nor there. Fundamentally, it seems the problem is that the require_once() statement on line 16 of index.php is looking for setup_inc.php "up one level and inside the 'kernel' directory". But given your URL structure, "up one level" references the vhost's document root, and most certainly, there is no "kernel" directory at that location. Presumably, the "kernel" directory is inside the "wiki" directory. Most likely, the root of the problem is in how that /wiki location is defined. Did you define that location yourself? Or did you just install some off-the-shelf Wikimedia package for your OS? -Ben --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org