Skip to:
Content
Pages
Categories
Search
Top
Bottom

Installation using symbolic links

  • @borkweb

    Participant

    Howdy. In an attempt to minimize my maintenance with the basic buddypress functionality, I checked out the latest trunk using Subversion. Rather than moving or copying the folders all over hells half acre, I decided to try setting up symbolic links (ln -s).

    The homepage looks great :) But the way that wp-load.php is included isn’t conducive with the symbolic link setup. Has anyone tackled this already before?

    require_once(dirname(dirname(dirname(dirname(dirname(__FILE__))))).'/wp-load.php');

Viewing 1 replies (of 1 total)
  • @borkweb

    Participant

    Here’s the solution I came up with. Rather than using the nested dirname functions, I found this to work nicely:

    require_once( preg_replace('/(.*)/wp-content/.*/', '1', dirname(__FILE__)) . '/wp-load.php' );

    I’ll create a ticket if this is something that is reasonable. Thoughts?

Viewing 1 replies (of 1 total)
  • The topic ‘Installation using symbolic links’ is closed to new replies.
Skip to toolbar