Multisite Migration Live to Local

For others that have found your way here, Clay’s command was for an older version of the Preferred Environment, and newer versions have a slightly different folder structure.

Here’s the updated process using Clays notes:

  1. Right-click on the site in Local’s sidebar
  2. Go to “Open Site SSH”
  3. Run the following command:
ln -sf /etc/nginx/includes/wordpress-multi.conf /etc/nginx/includes/wordpress.conf
  1. Restart the site so that the NGINX config changes get loaded in

You can verify that things are setup correctly by looking at the folder and seeing the link correctly pointing to the multisite configuration file. Here’s what my terminal output looks like:

root@f10719522f5e:~# ln -sf /etc/nginx/includes/wordpress-multi.conf /etc/nginx/includes/wordpress.conf
root@f10719522f5e:~# ls -alh /etc/nginx/includes/
total 32K
drwxr-xr-x 2 root root 4.0K Nov  6 16:39 .
drwxr-xr-x 4 root root 4.0K Nov  6 16:32 ..
-rw-r--r-- 1 root root  724 Sep 10 20:38 gzip.conf
-rw-r--r-- 1 root root 5.3K Sep 10 20:38 mime-types.conf
-rw-r--r-- 1 root root  746 Sep 10 20:38 restrictions.conf
-rw-r--r-- 1 root root  783 Sep 10 20:38 wordpress-multi.conf
-rw-r--r-- 1 root root  374 Sep 10 20:38 wordpress-single.conf
lrwxrwxrwx 1 root root   40 Nov  6 16:39 wordpress.conf -> /etc/nginx/includes/wordpress-multi.conf