Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercasares committed Jan 26, 2023
2 parents 4f59bb2 + 73ed7b3 commit 8701a0d
Show file tree
Hide file tree
Showing 5 changed files with 392 additions and 34 deletions.
12 changes: 7 additions & 5 deletions before-install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Before installing WordPress, you need to check that your web hosting provider fu
# Requirements on the server side

* PHP 7.4 or greater
* MySQL 5.6 or MariaDB 10.1 or greater
* MySQL 5.7 or MariaDB 10.3 or greater
* HTTPS support

For a list of detail requirements on your web host, refer the [official requirement page](https://wordpress.org/about/requirements/).
For a list of detail requirements on your web host, refer the [official requirement page](https://wordpress.org/about/requirements/) and the [Server Environment page](https://make.wordpress.org/hosting/handbook/server-environment/).

# Requirements on local

Expand All @@ -16,12 +17,13 @@ For a list of detail requirements on your web host, refer the [official requirem
* FTP
* Your web browser of choice

You will need to know how to use a text editor to edit the main configuration file. If you are a Windows user, Notepad will do. If you’re an OS X user you can use TextEdit. Later, you will likely want to edit your Template Files (see [Templates](https://codex.wordpress.org/Templates) for some references). You can do this through the WordPress [Administration Screens](https://wordpress.org/support/article/administration-screens/), but using a good text editor is highly recommended. For more information on this, see [Editing Files](https://developer.wordpress.org/advanced-administration/wordpress/edit-files/).
You will need to know how to use a text editor to edit the main configuration file. If you are a Windows user, Notepad will do. If you’re an OS X user you can use TextEdit. Later, you will likely want to edit your Template Files (see [Templates](https://codex.wordpress.org/Templates) for some references). You can do this through the WordPress [Administration Screens](https://wordpress.org/documentation/article/administration-screens/), but using a good text editor is highly recommended. For more information on this, see [Editing files](https://wordpress.org/documentation/article/editing-files/).

You will need to be able to use an FTP program to [upload](https://developer.wordpress.org/advanced-administration/upgrade/ftp/filezilla/) files and [set file permissions](https://developer.wordpress.org/advanced-administration/server/file-permissions/) (optional). You could choose [FileZilla](https://developer.wordpress.org/advanced-administration/upgrade/ftp/filezilla/) for this task.
You will need to be able to use an FTP program to [upload](https://wordpress.org/documentation/article/using-filezilla/) files and [set file permissions](https://wordpress.org/documentation/article/changing-file-permissions/) (optional). You could choose [FileZilla](https://wordpress.org/documentation/article/using-filezilla/) for this task.

Now you are all set to go on to [Installation](https://developer.wordpress.org/advanced-administration/before-install/howto-install/).
Now you are all set to go on to [Installation](https://wordpress.org/documentation/article/how-to-install-wordpress/).

## Changelog

- 2023-01-20: Changed MySQL and MariaDB versions. Fixed some links.
- 2022-09-11: Original content from [Before You Install](https://wordpress.org/support/article/before-you-install/).
76 changes: 75 additions & 1 deletion multisite/sites-multisite.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,83 @@
# Migrate WordPress sites into WordPress Multisite

This tutorial explains how to migrate multiples WordPress installs to a WordPress multisite install. You can migrate sites that use their own domain names, as well as sites that use a subdomain on your primary domain.

This tutorial assumes that you are hosting WordPress on a server using cPanel. If you are using another solution to manage your server, you'll have to adapt these instructions.

## Steps to follow {#steps-to-follow}

### Backup your site {#backup-your-site}

Generate a full site backup in cPanel. It might also help to copy all the files on the server via FTP, so that you can easily access the files for plugins and themes, which you'll need in a later step.

### Export from your existing WordPress installs`{#export-from-your-existing-wordpress-installs}

In each of your existing WordPress installations, go Tools > Export in WordPress. Download the WXR files that contain all your posts and pages for each site. See the instructions on the [Tools Export Screen](https://wordpress.org/support/article/tools-export-screen/).

Make sure that your export file actually has all the posts and pages. You can verify this by looking at the last entry of the exported file using a text editor. The last entry should be the most recent post.

Some plugins can conflict with the export process, generating an empty file, or a partially complete file. To be on the safe side, you should probably disable all plugins before doing the exports.

It's also a good idea to first delete all quarantined spam comments as these will also be exported, making the file unnecessarily large.

Note: widget configuration and blog/plugin settings are NOT exported in this method. If you are migrating within a single hosting account, make note of those settings at this stage, because when you delete the old domain, they will disappear.

### Install WordPress {#install-wordpress}

Install WordPress. Follow the instructions for [Installing WordPress](https://wordpress.org/support/article/how-to-install-wordpress/).

### Activate multisite {#activate-multisite}

Activate multi-site in your WordPress install. This involves editing wp-config.php a couple of times. You need to use the subdomain, not the subdirectory, option. See the instructions on how to [Create A Network](https://wordpress.org/support/article/create-a-network/).

### Create blogs for each site you want to import {#create-blogs-for-each-site-you-want-to-import}

Create blogs for each of the sites you want to host at separate domains. For example, `importedblogdotorg.mydomain.com`.

Note: choose the name carefully, because changing it causes admin redirection issues. This is particularly important if you are migrating a site within the same hosting account.

### Import WXR files for each blog {#import-wxr-files-for-each-blog}

Go to the backend of each blog, and import the exported WXR file for each blog. Map the authors to the proper users, or create new ones. Be sure to check the box that will pull in photos and other attachments. See the instructions on Tools Import SubPanel.

Note: if you choose to import images from the source site into the target site, make sure they have been uploaded into the right place and are displayed correctly in the respective post or page.

### Copy theme and plugin files {#copy-theme-and-plugin-files}

Before you start, check that your plugins will work in the network installation. If a plugin is not supported, do not install it. Find suitable alternatives for it by searching for the plugin's function with "multisite" or even "mu", as in "social bookmarking plugin wordpress multisite".

Copy the theme and plugin files from your old WP installs to their respective directories in the new wp-content. You can activate themes for the network, or you can go to Superadmin > Sites, then click edit on the site you want, and enable a given theme for just that site.

Note: if you are using a child theme, copy both parent and child themes to the new site.

### Edit WordPress configuration settings for each site {#edit-wordpress-configuration-settings-for-each-site}

Edit the configuration settings, widget, etc. for each site. By the end of this step, each site should look exactly as it did before, only with the URL subdomain.example.com or example.com/subsite rather than its correct, final URL.

## Potential problems {#potential-problems}

### Limitations of PHP configuration {#limitations-of-php-configuration}

You may run into trouble with the PHP configuration on your host. There are two potential problems. One is that PHP's `max_upload_size` will be too small for the WXR file. The other problem is that the PHP memory limit might be too small for importing all the posts.

There are a couple ways to solve it. One is to ask your hosting provider to up the limits, even temporarily. The other is to put a php.ini file in your `/wp-admin/` and `/wp-includes` directories that ups the limits for you (php.ini files are not recursive, so it has to be in those directories). Something like a 10 MB upload limit and a 128 MB memory limit should work, but check with your hosting provider first so that you don't violate the terms of your agreement.

Search the [WordPress forum support](https://wordpress.org/support/forums/) for help with PHP configuration problems.

### Converting add-on domains to parked domains {#converting-add-on-domains-to-parked-domains}

Deleting add-on domains in cPanel and replacing them with parked domains will also delete any domain forwarders and e-mail forwarders associated with those domains. Be aware of this, so that you can restore those forwarders once you've made the switch.

### Limitations of importing users {#limitations-of-importing-users}

As there is the above way to import the content into an instance of the Multisite-blog, you are running into massive troubles, when it gets to import multiple users. Users are generated during the import, but you won't get any roles or additional information into the new blog.

### Losing settings {#losing-settings}

If the old site is no longer available and you find you have forgotten to copy some setting or you want to make sure you have configured everything correctly, run a google search for your site and then click to view the cached version. This option is available only until your new site has been crawled, so you'd better be quick.

Another option might be the [Internet Archive Wayback Machine](https://archive.org/web/). They may have a copy of the site (or some part of it) archived.

## Changelog

- 2023-01-15: Nothing here, yet.
- 2023-01-20: Original content from [Migrating multiple blogs into WordPress multisite](https://wordpress.org/documentation/article/migrating-multiple-blogs-into-wordpress-multisite/)
Loading

0 comments on commit 8701a0d

Please sign in to comment.