httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Johnson <>
Subject Re: [users@httpd] 403 Forbidden ...
Date Tue, 13 Nov 2012 20:54:14 GMT

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: <Directory />
>      201:   Require all granted ( Was denied )
>         : </Directory>
>      223: <Files ".ht*">
>      224:   Require all denied
>         : </Files>
>      315: <Directory "/opt/apache2/cgi-bin">
>      318:   Require all granted
>         : </Directory>
>     In file: /opt/apache2/conf/vhosts.d/
>       60:   <Directory "/srv/website/">
>       73:     Options FollowSymLinks
>       80:     AllowOverride All
>         :   </Directory>
>       94:   ErrorDocument 404 /index.php
>         : </VirtualHost>
> 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?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message