WPMU – No Symlinks!

WordPressMU uses symlinks to do the multi-blog thing. Blogs names are linked to in a “blogs” directory (avoids having the root directory writeable by the webserver!) which makes life easier on me writing mod_rewrite rules for various reasons.
Unfortunately, that requirement means that PHP has to be able to symlink directories which isn’t possible all the time due to security settings on servers. Therefore, here’s two htaccess.dist files that you can drop into your WPMU installation, then run your installation again (delete the existing .htaccess files)
Put this htacess.dist in the root directory: http://blogs.linux.ie/download/htaccess.dist
(If you’ve downloaded this file already, grab it again. I updated it so wp-login.php works, and wp-images show in the backend!)

Rename this and copy it to wp-inst/htaccess.dist: http://blogs.linux.ie/download/wp-inst-htaccess.dist

Delete the existing .htaccess and wp-inst/.htaccess and the install will run when you visit the root URL of your blog. You can delete the “blogs” directory too if you like! (Make a backup first though!)

3 thoughts on “WPMU – No Symlinks!

  1. Perhaps I’m missing the point but I don’t really see how WPMU is any different than the normal WP install. I use the normal WP and have multiple authors and users without a problem. What is the difference, if you don’t mind?

    Aaron

  2. On this site there are multiple blogs – The Blog That Should Not Be, Stuff, Dj Magra’s stuff ‘n’ stuff, Caolan’s Blog, and To Be Frank … are just a few. All the blog writers here only have access to their own blogs and templates and comments, etc. Just like on blogger.com!
    Oh, and we also use Smarty Templates and all the advantages that brings to the mix as well! So, it’s a very different beast to a standard WP install.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>