On Nov 14, 2004, at 6:55 PM, Mark Constable wrote:
The ideal, for me, would be that a single SIMPLE
index.php
dropped into any on-web doc root pulls up a unique full working
instance of MediaWiki. That 99.9% of the code works properly
from an off-web includes area and, but not so importantly, that
on-web CSS and image requirements can come from some default
initial domain so that nothing other than the index.php and a
LocalSettings.php are required in any vhost webfolder...
<?php
require './LocalSettings.php';
require 'mediawiki.php';
?>
What's stopping that from working?
The simplest minimum, without worrying
about a default webhost for images and stylesheets, is...
LocalSettings.php
images/
index.php
redirect.php@ (a link -> index.php)
stylesheets/
tmp/ (was autocreated)
Neither images/ nor stylesheets/ should be necessary if you don't want
them there; you can set the on-disk directories for each arbitrarily
and give them arbitrary URL path prefixes from LocalSettings.php. I'm
not sure what the tmp directory is for?
index.php, redirect.php, and LocalSettings.php can be symbolic links to
a central holding area if you like.
For that matter, since none of these files are domain-specific you
don't actually need 4000 directories with 4000 copies for 4000 domains.
Your LocalSettings.php (or whatever you load up from there) can set up
the appropriate configuration based on the virtual server's hostname or
environment variables set from Apache.
-- brion vibber (brion @
pobox.com)