[wp-trac] [WordPress Trac] #20059: APC + hard link + __FILE__ doesn't work
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 17 10:32:03 UTC 2012
#20059: APC + hard link + __FILE__ doesn't work
--------------------------+------------------------------
Reporter: rootix | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: close |
--------------------------+------------------------------
Changes (by dd32):
* keywords: => close
Comment:
Simple; Don't use a hard link, it confuses PHP..
{{{
~/public_html/example.com/index.php
~/public_html/example.com/wp-config.php
~/public_html/example.com/uploads/
~/public_html/example.com/wordpress/ ==symbolic link==>
/home/.../wordpress/
~/wordpress/ (with all the WordPress core files here)
}}}
You can define custom content directories, or plugin directories in the
wp-config.php, and after install, you'll need to change the Home/Site
url's to match what you expect (`home: http://example.com/wordpress/ and
site: http://example.com/`)
I use this exact configuration with APC and PHP, and it works fine,
upgrades can sometimes confuse you when it's run on one site, but not
all.. and further, MultiSite is a better option for most scenario's where
you just want multiple blogs to run from the single codebase.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20059#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list