[wp-trac] [WordPress Trac] #2866: WP can't be used from a single
source installation
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 27 01:12:49 GMT 2006
#2866: WP can't be used from a single source installation
---------------------+------------------------------------------------------
Reporter: RuddO | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
In summary, WordPress can't be used in a single source installation.
To achieve this, I'm using a technique which involves having WP in a
master directory, plus a "phantom" directory for each different blog -
where wp-config.php resides, and the other WP files are symlinks to the
master directory's contents. I thus, for each blog, set the Apache
DocumentRoot to the blog's phantom directory (which contains that blog's
wp-config.php) rather than to the master directory.
This would work okay, except for the fact that, on wp-blog-header.php, `if
( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {` does not work,
because __FILE__ points to the *real* wp-blog-header.php instead of to the
wp-blog-header.php on the phantom directory. Of course, this results in
wp-config.php "not existing".
Since, for all general executions of the blog engine, dirname(__FILE__) in
wp_blog_header.php should equal the results of getcwd(), I'm changing
this. Attached is the patch that performs this fix on WordPress 2.0.3
(plus nonces fixes).
--
Ticket URL: <http://trac.wordpress.org/ticket/2866>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list