Migrated Wordpress File Just Downloads Migrating from Wordpress
Total Page:16
File Type:pdf, Size:1020Kb
migrated wordpress file just downloads Migrating from WordPress. Save time and let the Ghost team do all the work on your behalf; no coding, no configuration, no worries. This migration is included with any Ghost(Pro) Standard Annual plan or higher, and has a lead time of two weeks. Get in touch with [email protected] to get started. With our WordPress Export Plugin you can smoothly move your content from WordPress to Ghost. In this guide we’ll show you how to export your content from WordPress, import it into a Ghost site, and take care of important details along the way. Keep in mind that a migration from WordPress will not include custom fields, metadata, shortcodes, custom post types & taxonomies, or binary files. Just posts, pages, text, and images. Prerequisites. The Export to Ghost plugin exports posts, pages, tags, authors and images from WordPress sites. Once you’ve imported your content from WordPress to Ghost, you’ll benefit from a suite of native features for all of the functionality you’re used to, without the need for additional plugins or downloads. Plus, if you want to connect all of your existing tools, we have hundreds of integrations to support that too. Installing the plugin. Log into your WordPress site and navigate to Plugins using the sidebar menu. Click Add New and use the search field in the top right corner to search for Ghost Export , or you can follow this direct link to the plugin. You’ll know it’s the right plugin if the author is Ghost Foundation . Click Install Now and then Activate . Preparing your content for export. Once the plugin is activated navigate to Tools and then Export to Ghost with the sidebar menu. You’ll be presented with a small preparation guide to make you aware of what will be exported, and how to prepare your WordPress content for Ghost. Converting categories to tags. Tags will be exported from WordPress, but not categories. This can be remedied using the Taxonomy Converter plugin. The following steps will permanently change the content structure of your WordPress site. If you are unsure of making this change please use the standard WordPress Export tool under Tools > Export to create a full backup of all your content. Navigate to Import in the sidebar menu and click Run Importer under the Taxonomy Converter import item. Use the checkboxes to select the categories you want to import into your Tags and therefore into your Ghost site. Then click Convert Categories to Tags . Tags and categories are almost exactly the same in terms of functionality. Categories are meant to mark pieces of content exclusively, meaning a post cannot exist in two categories at a time, a concept which can be managed very well with Tags in Ghost. Exporting your content from WordPress. Now that your posts, pages, tags, authors and images are ready to be exported navigate back to Export to Ghost within Tools in the sidebar menu. Click the Download Ghost File button. If all goes well you’ll have downloaded a zip file containing all your content. Troubleshooting. In some cases your WordPress installation won’t be able to handle how much content is being exported, either because there’s a lot of data or because the WordPress install hasn’t been given enough time to process the data. If you do encounter these problems click .json below the download button. This will produce a single file which will contain all your posts, pages and tags and will skip the image downloading step. Images normally take the longest to download in any site export, so if you’re struggling with the download you might have better luck downloading them directly from the server, or asking your site administrator. When the images are downloaded, they need to be stored with the following directory structure: You can zip the images directory, and upload to Ghost. URL paths for content images will also need to be updated as the directory structure is different. Open the JSON file in your code editor, and use find and replace to replace the old structure with the new, for example: Find https://exmaple.com/wp-content/uploads/ Replace with: https://exmaple.com/content/images/wordpress/ If you want to remove the /wordpress/ part of the image URLs, you will also need to change the feature_image value of each post in the JSON file to remove this. Importing your content to Ghost. After the download is complete you’ll be left with a zip file containing your data and images. The JSON data file can also be used in these steps. Images will need to be uploaded alongside a JSON data file in a zip file. Log into Ghost admin and navigate to Labs view. Click the Choose file button within the Import content option and select your exported zip file, then click Import . All your content will then be imported into your Ghost site Ghost may warn you if there are any pieces of duplicate or malformed data. Large image sets. If you have hundreds of images, you may find uploading multiple smaller zip files works better. Aim for approximately 100mb of images per zip file, and upload these one by one until they’re all uploaded. Changing domains. In some cases exported data still contains the original WordPress domain you were using. This is fine if the new Ghost site is using the same domain, but if not you may need to modify the JSON file before importing. Open the JSON file in your code editor, which can be found by unzipping the export file, and use find and replace to replace the old domain with your new domain. Save the changes and zip the export up again. Authors who were migrated will most likely need to reset their passwords, which can be done when logging into Ghost. Pro tip: Just set up your site and want to remove the placeholder content? Head on over to Staff and select the Ghost user. Use the cog icon in the top right corner to delete this user, which will in turn delete all the placeholder Ghost content Summary. Congratulations on your migration to Ghost . All that’s left to do is check over your content to ensure the migration has worked as expected. We also have a guide on how to implement redirects to make your transition smoother. Move a WordPress Site by Moving the Database and Files. The following is a guest post by Erez Elias. Erez recently attended a WordCamp and wrote to me inspired to write something about WordPress. We agreed this was an interesting topic, and one I’ve been meaning to document myself as it’s something I’ve done about 100 times in my life and there is always one little detail I gotta look up. One big source of frustration I’ve seen from WordPress users comes when they want to move their WordPress site. As in, move the entire website from one hosting company to another hosting company. In this article I will walk you through 4 simple steps of moving a WordPress website to a new hosting. This article assumes that you have access to both the old server and the new server. You can log into both of them via FTP or SSH. Step 1) Back Up the Database. WordPress stores data in a MySQL database. You’ll need to move this database to move the site, which is arguably the trickiest part. You’ll need to back up the database from the old site first. Method 1) Use a Plugin. There is a method of backing up the database using a plugin. Note that If you are dealing with a large database (say, over 50 MB) you are better off using Method 2. WordPress has numerous plugins to backup the database, my favourite is a plugin called wp-db-backup. Once the plugin is installed and activated, select Tools > Backup in the admin. The plugin will look for other tables in the same database. These non “core” WordPress tables may have come from other plugins you’ve used that stored data in them. Select whether you want the backup file sent to you by email or downloaded directly and click the Backup Now! button. Method 2) Use the Command Line. We can get a little closer to the metal if we back using SSH. SSH (Secure Shell) is a network protocol that allows you to securely access your server over encrypted connection. First, you will need to connect to the server. You need to have the server’s IP address, username, and password. You’ll also need a command line client like Terminal for Mac or Putty for Windows. If it is the first time you establish connection you will see a prompt Are you sure you want to continue connecting? Type yes and press return. Then you will be asked to enter your SSH login password. After that, you’ll be connected to the server over SSH. Now you can export the database with the following command. You’ll need to replace the options in [brackets] there with your own information. The username isn’t the same here as your SSH login, it’s your MySQL access username. The database name you can get from the `wp_config.php` file if you’ve forgotten. It will also ask you for a password after this command, which is the database password, which you can also get from the `wp-config.php` file. This will create a file (which you named in the last part of that command) which is a complete backup of your database.