I use WordPress for three websites:
- http://dan.langille.org/ (this website)
- http://news.freshports.org/
- http://wp.freebsddiary.org
This also mean I have WordPress installed three times. Recently, I looked at moving to multi-site WordPress.
I failed. Or rather, I abandoned the process.
My goals:
- have one instance of WordPress for all three website
- have each blog available via both https
Option 1 is to reduce the work required when upgrading WordPress and plugins.
Option 2 is to ensure I can perform the admin using a secure channel.
A horrible overview of how I did this
To get there, and I apologize for the brevity of these steps:
- I created a new Apache virtual host (e.g. wordpress.example.org)
- Installed WordPress in the root directory of this website
First, you need to go into Tools | Network Setup and create a network. Be sure to use subdomains, not subdirectories.
Then you amend wp-config.php as shown on the results page after you do the above.
It says to add to .htaccess,but I added to virtualhost apache definition instead. Because that’s the way I run my blogs.
Key to this is Multiple domains with multisite plugin. You want to follow the installation instructions.
Why did I stop?
I abandoned my objective for a number of reasons:
- Importing the other blogs seemed fraught with failure
- I wasn’t sure that all this would work…
I may come back to this another time.
In the meantime…
In the meantime, I upgraded one installation using the documented upgrade process. This worked well. The process, again, horribly documented, was:
- cd /usr/local/www/mywesite.com/
- tar -cf backup.tar wordpress # back the existing code
- cd wordpress
- rm -rf wp-includes wp-admin # remove the old code
- cp -rp ../wordpress.3.5/wp-admin . # copy over the new
- cp -rp ../wordpress.3.5/wp-includes . # copy over the new
- cd wp-content
- cp -r ../../wordpress.3.5/wp-content/* .# copy over the new
- cd ..
- cp ../wordpress.3.5/* .# copy over the new
That worked for me. :)