Setting up WordPress MU using SSH

Setting up WordPress MU using SSH

Setting up WordPress MU can be tricky, particularly on your first attempt. This post assumes you have already setup the minimum requirements in the wp-config.php and able to connect to your server via SSH.

On one of my first Hostgator shared hosting the ability to setup wildcard sub domains made it incredibly easy to add sub domains onto the WordPress MU sites, however after migrating to a new server i wasn’t able to setup the wildcard sub domains, whether or not this is due to server restrictions or my lack of knowledge I couldn’t say.

In this example my web structure is as follows:

wordpress-mu-sym-link

cd into the subdomain

cd sd/subdomain/www/

 

Use ln -s to create symbolic links to your main install, you can copy the following commands all in one go though be sure to check your web structure and amend accordingly.

ln -s ../../../www/wp-admin/
ln -s ../../../www/wp-content/
ln -s ../../../www/wp-includes/
ln -s ../../../www/index.php
ln -s ../../../www/wp-activate.php
ln -s ../../../www/wp-blog-header.php
ln -s ../../../www/wp-comments-post.php
ln -s ../../../www/wp-cron.php
ln -s ../../../www/wp-config.php
ln -s ../../../www/wp-links-opml.php
ln -s ../../../www/wp-load.php
ln -s ../../../www/wp-login.php
ln -s ../../../www/wp-mail.php
ln -s ../../../www/wp-settings.php
ln -s ../../../www/wp-signup.php
ln -s ../../../www/wp-trackback.php
ln -s ../../../www/xmlrpc.php

 

I hope this makes some sense, feel free to suggest improvements or better ways to achieve this.



Leave a Reply

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


-->