forked from linode/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NEW] How to Migrate a WordPress.com Website to Linode (linode#1954)
* Draft finished * tech edit to migrate wp.com to linode * techedit tweaks to lamp and wp guides * added authsocket to dictionary * keywords in shortguides to appease travis * Copy edited Formatting fix in use-linode-nameservers shortguide.
- Loading branch information
Showing
15 changed files
with
214 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ authmysql | |
authmysqlrc | ||
authn | ||
authomator | ||
authsocket | ||
authy | ||
autocompletion | ||
autoconfiguration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
author: | ||
name: Linode | ||
email: [email protected] | ||
description: 'Shortguide that displays the limited user note used in many guides.' | ||
license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)' | ||
modified: 2018-08-03 | ||
modified_by: | ||
name: Nathan Melehan | ||
published: 2018-08-03 | ||
title: Limited User Alert | ||
keywords: [] | ||
shortguide: true | ||
show_on_rss_feed: false | ||
--- | ||
|
||
{{< note >}} | ||
|
||
This guide is written for a non-root user. Commands that require elevated privileges are prefixed with `sudo`. If you're not familiar with the `sudo` command, visit our [Users and Groups](/docs/tools-reference/linux-users-and-groups/) guide. | ||
|
||
All configuration files should be edited with elevated privileges. Remember to include `sudo` before running your text editor. | ||
|
||
{{< /note >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
docs/platform/migrate-to-linode/migrate-a-wordpressdotcom-site-to-linode/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
author: | ||
name: Nathan Melehan | ||
email: [email protected] | ||
description: 'Shows how to export posts from a WordPress.com website and import them to WordPress on a Linode.' | ||
keywords: ["wordpress", "wordpress.com", "migrate", "website migration"] | ||
license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)' | ||
modified: 2018-08-07 | ||
modified_by: | ||
name: Linode | ||
published: 2018-08-07 | ||
title: How to Migrate a WordPress.com Website to Linode | ||
external_resources: | ||
- '[WordPress.com: Moving to Self-Hosted WordPress](https://move.wordpress.com/)' | ||
--- | ||
|
||
This guide describes how to export your content from WordPress.com and self-host your WordPress website on Linode. Read the [Best Practices when Migrating to Linode](/docs/platform/migrate-to-linode/best-practices-when-migrating-to-linode/) guide prior to following this guide for more information about migrating your site. | ||
|
||
Ubuntu 18.04 is used as the distribution for the new Linode deployment in this guide. If you'd like to choose another distribution, use the examples here as an approximation for the commands you'll need to run. You will also install either a [LAMP](/docs/web-servers/lamp/install-lamp-stack-on-ubuntu-18-04/) or [LEMP](/docs/web-servers/lemp/how-to-install-a-lemp-server-on-ubuntu-18-04/) environment on your new Linode. | ||
|
||
{{< note >}} | ||
WordPress.com's export feature will export pages, posts, and comments from your site, but it will not export your themes and widgets. You will need to customize your new self-hosted WordPress site's appearance after completing your migration. | ||
{{< /note >}} | ||
|
||
## Migrate Your Website | ||
|
||
### Deploy Your Linode | ||
|
||
1. Follow Linode's [Getting Started](/docs/getting-started/) guide and choose Ubuntu 18.04 as your Linux image when deploying. Choose a Linode plan with enough storage space to accommodate the website data from your current host. | ||
|
||
1. Follow the [How to Secure Your Server](/docs/security/securing-your-server/) guide and create a limited Linux user with `sudo` privileges. | ||
|
||
1. Follow the [Install WordPress on Ubuntu 18.04](/docs/websites/cms/install-wordpress-ubuntu-18-04) guide to stand up a new web server and WordPress installation. Later in this guide you will use the WordPress credentials you create during the installation, so be sure to record them. | ||
|
||
### Export Your WordPress.com Content | ||
|
||
1. Login to your WordPress.com dashboard and navigate to the `Settings` page. Choose the `Export` option from the `Settings` page: | ||
|
||
![WordPress.com Settings Page](wordpressdotcom-settings.png "Choose the Export option from the Settings page.") | ||
|
||
1. Click `Export All`, then `Download` to download a compressed file of your content in XML form. A copy will also be emailed to you: | ||
|
||
![WordPress.com Export Page](wordpressdotcom-export.png "Click Export All to export your content to an XML file.") | ||
|
||
To export posts, pages, or feedback from the site, press the down arrow to the right of the `Export All` button. | ||
|
||
1. Unzip the file. | ||
|
||
### Import Your Content on Linode | ||
|
||
1. Visit your Linode-hosted WordPress login from your browser (usually `http://<your-linode-ip>/wp-admin`) and login with your WordPress credentials. | ||
|
||
1. Navigate to the Import page of the Tools section. The WordPress importer plugin will be listed: | ||
|
||
![WordPress Tools Page](tools-import-wordpress.png "WordPress Importer plugin.") | ||
|
||
1. Choose `Install Now` and then run this plugin. On the page that appears, click `Choose File` and locate the XML file you previously exported from WordPress.com to your computer: | ||
|
||
![WordPress Importer Plugin - Page 1](wordpress-importer-plugin-1.png "Import file dialog box.") | ||
|
||
1. A page will appear that surfaces a few import options: | ||
|
||
![WordPress Importer Plugin - Page 1](wordpress-importer-plugin-2.png "Import file options show author and post options.") | ||
|
||
You are able to assign your imported posts to: | ||
|
||
- Your previous WordPress.com user, which will also be imported | ||
- A brand new user that the import plugin will create | ||
- One of the WordPress users you've already created on your Linode as part of deploying your web server | ||
|
||
**Be sure to enable** the *Download and import file attachment* option on this page. | ||
|
||
1. Submit this form. Your content will now be imported. | ||
|
||
1. Navigate to the `Permalinks` page in the `Settings` section: | ||
|
||
![WordPress Permalinks](wordpress-permalinks.png "WordPress permalinks day and name option.") | ||
|
||
1. Choose the `Day and name` option and save the change. This option matches the permalink style used on WordPress.com. | ||
|
||
## Migrating DNS Records | ||
|
||
The last step required to migrate is to update your DNS records to reflect your new Linode's IP. Once this is done, visitors will start loading the page from your Linode. | ||
|
||
{{< content "use-linode-name-servers" >}} | ||
|
||
## Next Steps | ||
|
||
The WordPress.com team recommends installing the [Jetpack plugin](https://jetpack.com/) on your new self-hosted WordPress site. This free plugin is maintained by the WordPress.com team and provides features available on your WordPress.com site, including analytics, site management tools, and access to the [WordPress.com apps](https://apps.wordpress.com/). [Premium versions](https://jetpack.com/pricing/) of the Jetpack plugin provide extra features. | ||
|
||
If you had subscribers on your WordPress.com site, you can also migrate them to your new self-hosted site. This requires that you install the Jetpack plugin and uses Jetpack's [subscription migration tool](https://jetpack.com/support/subscription-migration-tool/). | ||
|
||
Your new self-hosted WordPress site uses the default theme and widgets. Review the WordPress.org documentation for [themes](https://codex.wordpress.org/Using_Themes#Adding_New_Themes_using_the_Administration_Panels) and [widgets](https://codex.wordpress.org/WordPress_Widgets) to learn how to customize your site's appearance. |
Binary file added
BIN
+193 KB
...e-to-linode/migrate-a-wordpressdotcom-site-to-linode/tools-import-wordpress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+56.9 KB
...linode/migrate-a-wordpressdotcom-site-to-linode/wordpress-importer-plugin-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+84.8 KB
...linode/migrate-a-wordpressdotcom-site-to-linode/wordpress-importer-plugin-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+200 KB
...ate-to-linode/migrate-a-wordpressdotcom-site-to-linode/wordpress-permalinks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.8 KB
...e-to-linode/migrate-a-wordpressdotcom-site-to-linode/wordpressdotcom-export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+192 KB
...to-linode/migrate-a-wordpressdotcom-site-to-linode/wordpressdotcom-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
docs/web-servers/lamp/mysql-authsocket-authentication-note-shortguide/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
author: | ||
name: Linode | ||
email: [email protected] | ||
description: 'Shortguide that describes how MySQL auth_socket authentication works.' | ||
license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)' | ||
modified: 2018-08-03 | ||
modified_by: | ||
name: Nathan Melehan | ||
published: 2018-08-03 | ||
title: About MySQL auth_socket Authentication | ||
keywords: [] | ||
shortguide: true | ||
show_on_rss_feed: false | ||
--- | ||
|
||
{{< disclosure-note "About MySQL authentication" >}} | ||
|
||
By default, MySQL is configured to use the `auth_socket` authorization plugin. This authorization scheme allows you to log in to the database's root user as long as you are connecting from the Linux root user on localhost, or as a user with sudo privileges (i.e. with `sudo mysql -u root`). In this scheme, no password is assigned to MySQL's root user: | ||
|
||
{{< highlight sql >}} | ||
mysql> SELECT user,host,authentication_string,plugin FROM mysql.user WHERE user='root'; | ||
+------+-----------+-----------------------+-------------+ | ||
| user | host | authentication_string | plugin | | ||
+------+-----------+-----------------------+-------------+ | ||
| root | localhost | | auth_socket | | ||
+------+-----------+-----------------------+-------------+ | ||
1 row in set (0.02 sec) | ||
{{< /highlight >}} | ||
|
||
You can keep using the `auth_socket` plugin, and this is considered a secure option for production systems. If you'd rather switch to password authentication and assign a password, enter the following commands. Replace `password` with a new root password: | ||
|
||
{{< highlight sql >}} | ||
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY 'password'; | ||
mysql> FLUSH PRIVILEGES; | ||
{{< /highlight >}} | ||
|
||
After making this change, you should pass the `-p` option when invoking the MySQL shell: | ||
|
||
mysql -u root -p | ||
|
||
{{< /disclosure-note >}} |
Oops, something went wrong.