Skip to content

Instantly share code, notes, and snippets.

@svandragt
Last active August 31, 2017 13:40
Show Gist options
  • Save svandragt/6b3fa71c134dd127b9d9100e09f23bc7 to your computer and use it in GitHub Desktop.
Save svandragt/6b3fa71c134dd127b9d9100e09f23bc7 to your computer and use it in GitHub Desktop.
Do eet

WordPress Migration into Network

The following example migrates archies.amasan.co.uk into the amasan.co.uk network.

Requirements

site management scripts

Directions

Backup the original site:

tar czf archies.amasan.co.uk.tgz archies.amasan.co.uk/

Remove unused plugins and themes, then copy them into the network:

cp plugins/ /var/www/amasan.co.uk/html/wp-content -R
cp themes/ /var/www/amasan.co.uk/html/wp-content -R

Install https://wordpress.org/plugins/widget-settings-importexport/ into network. Export the widgets from the original site.

Nginx: Add domain to server_name.

Remove the old site:

cd /etc/nginx/sites-enabled
site-disable.sh archies.amasan.co.uk

Create a new site, remove the example post, page and comment. Import the site. Import widgets Setup domain mapping. Setup all the bloody plugins.

Troubleshooting

  • Where are all the images gone?
    • No idea.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment